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