2 * Copyright 2015 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
9 // https://bug.skia.org/4374
10 DEF_SIMPLE_GM(draw_bitmap_rect_skbug4734, canvas, 64, 64) {
12 if (GetResourceAsBitmap("randPixels.png", &source)) {
13 SkRect rect = SkRect::Make(source.bounds());
16 SkMatrix::MakeScale(8.0f).mapRect(&dst, rect);
17 canvas->drawBitmapRect(source, rect, dst, nullptr);