aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar lsalzman <lsalzman@mozilla.com>2016-01-14 13:06:41 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-14 13:06:41 -0800
commit973ed24fcb58db36588a19c18ae56af8f8adbba3 (patch)
tree555c814db37aea16535cc41714a00ca566aa9e3c /src
parent576c206d29b9de406e7faf6a93c416290b2c08b5 (diff)
fix SkGpuDevice::drawBitmapRect to always update clips
Diffstat (limited to 'src')
-rw-r--r--src/gpu/SkGpuDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index a3f00c1434..0359b57ca5 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);