Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index f1777441d65b305a11dd442ab4ef35834b991a89..2f6477c41dec49be7cdc59cb3014364efff34a5a 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -1161,9 +1161,8 @@ static void draw_filter_into_device(SkBaseDevice* src, const SkImageFilter* filt |
SkCanvas c(dst); |
- SkAutoTUnref<SkImageFilter> localF(filter->newWithLocalMatrix(ctm)); |
SkPaint p; |
- p.setImageFilter(localF); |
+ p.setImageFilter(filter->makeWithLocalMatrix(ctm)); |
const SkScalar x = SkIntToScalar(src->getOrigin().x()); |
const SkScalar y = SkIntToScalar(src->getOrigin().y()); |
c.drawBitmap(srcBM, x, y, &p); |