From c6e53f0d47f8965dc42f96300591310335f08279 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 14 Jan 2016 15:17:55 -0500 Subject: [PATCH] Bug 1238795 - Fix SkGpuDevice::drawBitmapRect to always update clips. r=jrmuizel --- gfx/skia/skia/src/gpu/SkGpuDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/skia/skia/src/gpu/SkGpuDevice.cpp b/gfx/skia/skia/src/gpu/SkGpuDevice.cpp index 17e4468acb21..6215c1b387f8 100644 --- a/gfx/skia/skia/src/gpu/SkGpuDevice.cpp +++ b/gfx/skia/skia/src/gpu/SkGpuDevice.cpp @@ -1210,9 +1210,9 @@ void SkGpuDevice::drawSprite(const SkDraw& draw, const SkBitmap& bitmap, void SkGpuDevice::drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap, const SkRect* src, const SkRect& origDst, const SkPaint& paint, SkCanvas::SrcRectConstraint constraint) { + CHECK_SHOULD_DRAW(draw); bool alphaOnly = kAlpha_8_SkColorType == bitmap.colorType(); if (bitmap.getTexture()) { - CHECK_SHOULD_DRAW(draw); GrBitmapTextureAdjuster adjuster(&bitmap); this->drawTextureProducer(&adjuster, alphaOnly, src, &origDst, constraint, *draw.fMatrix, fClip, paint);