Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 7c1c07b5f26f0e3ac425afea74052509a9408691..f1c16266027c813be555904b64e9bf840b07798c 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -2265,9 +2265,9 @@ void SkCanvas::onDrawImage(const SkImage* image, SkScalar x, SkScalar y, const S |
if (as_IB(image)->asBitmapForImageFilters(&bitmap)) { |
SkPoint pt; |
iter.fMatrix->mapXY(x, y, &pt); |
- iter.fDevice->drawBitmapAsSprite(iter, bitmap, |
- SkScalarRoundToInt(pt.fX), |
- SkScalarRoundToInt(pt.fY), pnt); |
+ iter.fDevice->drawBitmapAsSpriteWithImageFilter(iter, bitmap, |
+ SkScalarRoundToInt(pt.fX), |
+ SkScalarRoundToInt(pt.fY), pnt); |
} |
} else { |
iter.fDevice->drawImage(iter, image, x, y, pnt); |
@@ -2347,9 +2347,9 @@ void SkCanvas::onDrawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, cons |
if (drawAsSprite && pnt.getImageFilter()) { |
SkPoint pt; |
iter.fMatrix->mapXY(x, y, &pt); |
- iter.fDevice->drawBitmapAsSprite(iter, bitmap, |
- SkScalarRoundToInt(pt.fX), |
- SkScalarRoundToInt(pt.fY), pnt); |
+ iter.fDevice->drawBitmapAsSpriteWithImageFilter(iter, bitmap, |
+ SkScalarRoundToInt(pt.fX), |
+ SkScalarRoundToInt(pt.fY), pnt); |
} else { |
iter.fDevice->drawBitmap(iter, bitmap, matrix, looper.paint()); |
} |