mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1238795 - Fix SkGpuDevice::drawBitmapRect to always update clips. r=jrmuizel
This commit is contained in:
parent
17d30dfd3a
commit
168bebba93
@ -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