Index: src/core/SkDevice.cpp |
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp |
index d854520a977c9e4309a8bd35d6f6188d04075fe1..df0ba5f110fa23dc8bce315fd34824ebc2d788a2 100644 |
--- a/src/core/SkDevice.cpp |
+++ b/src/core/SkDevice.cpp |
@@ -403,10 +403,13 @@ void SkBaseDevice::drawTextOnPath(const SkDraw& draw, const void* text, size_t b |
////////////////////////////////////////////////////////////////////////////////////////// |
-void SkBaseDevice::drawBitmapAsSprite(const SkDraw& draw, const SkBitmap& bitmap, int x, int y, |
- const SkPaint& paint) { |
+void SkBaseDevice::drawBitmapAsSpriteWithImageFilter(const SkDraw& draw, const SkBitmap& bitmap, |
+ int x, int y, |
+ const SkPaint& paint) { |
SkImageFilter* filter = paint.getImageFilter(); |
- if (filter && !this->canHandleImageFilter(filter)) { |
+ SkASSERT(filter); |
+ |
+ if (!this->canHandleImageFilter(filter)) { |
SkImageFilter::DeviceProxy proxy(this); |
SkIPoint offset = SkIPoint::Make(0, 0); |
SkMatrix matrix = *draw.fMatrix; |