mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1238795 - Fix SkGpuDevice::drawBitmapRect to always update clips. r=jrmuizel
This commit is contained in:
parent
88ca65cfad
commit
c6e53f0d47
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user