Index: src/core/SkDevice.cpp |
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp |
index df0ba5f110fa23dc8bce315fd34824ebc2d788a2..0ff094d73bdc74801d17cff3d0b7ae31cc6a16c7 100644 |
--- a/src/core/SkDevice.cpp |
+++ b/src/core/SkDevice.cpp |
@@ -403,9 +403,9 @@ void SkBaseDevice::drawTextOnPath(const SkDraw& draw, const void* text, size_t b |
////////////////////////////////////////////////////////////////////////////////////////// |
-void SkBaseDevice::drawBitmapAsSpriteWithImageFilter(const SkDraw& draw, const SkBitmap& bitmap, |
- int x, int y, |
- const SkPaint& paint) { |
+void SkBaseDevice::drawSpriteWithFilter(const SkDraw& draw, const SkBitmap& bitmap, |
+ int x, int y, |
+ const SkPaint& paint) { |
SkImageFilter* filter = paint.getImageFilter(); |
SkASSERT(filter); |
@@ -423,7 +423,7 @@ void SkBaseDevice::drawBitmapAsSpriteWithImageFilter(const SkDraw& draw, const S |
return; // something disastrous happened |
} |
- SkAutoTUnref<SkSpecialImage> resultImg(filter->filterImage(srcImg.get(), ctx, &offset)); |
+ sk_sp<SkSpecialImage> resultImg(filter->filterImage(srcImg.get(), ctx, &offset)); |
if (resultImg) { |
SkPaint tmpUnfiltered(paint); |
tmpUnfiltered.setImageFilter(nullptr); |