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