Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index a3f00c1434f43f504d1cae0acf27cb77971169a7..0359b57ca5edb5ca182db7a0ab9ad99d2012d82c 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -1223,8 +1223,8 @@ void SkGpuDevice::drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap, |
const SkRect* src, const SkRect& origDst, |
const SkPaint& paint, SkCanvas::SrcRectConstraint constraint) { |
ASSERT_SINGLE_OWNER |
+ CHECK_SHOULD_DRAW(draw); |
if (bitmap.getTexture()) { |
- CHECK_SHOULD_DRAW(draw); |
GrBitmapTextureAdjuster adjuster(&bitmap); |
this->drawTextureProducer(&adjuster, src, &origDst, constraint, *draw.fMatrix, fClip, |
paint); |