Index: src/effects/SkTileImageFilter.cpp |
diff --git a/src/effects/SkTileImageFilter.cpp b/src/effects/SkTileImageFilter.cpp |
index a4129a5ad0f4c25fea662f5ddcdd0138b4d61904..ab127f6fdfe1e0d415a53976748bc91f1e23540e 100644 |
--- a/src/effects/SkTileImageFilter.cpp |
+++ b/src/effects/SkTileImageFilter.cpp |
@@ -28,9 +28,10 @@ SkImageFilter* SkTileImageFilter::Create(const SkRect& srcRect, const SkRect& ds |
return SkSafeRef(input); |
} |
CropRect cropRect(ir); |
- return SkOffsetImageFilter::Create(dstRect.x() - srcRect.x(), |
- dstRect.y() - srcRect.y(), |
- input, &cropRect); |
+ return SkOffsetImageFilter::Make(dstRect.x() - srcRect.x(), |
+ dstRect.y() - srcRect.y(), |
+ sk_ref_sp<SkImageFilter>(input), |
+ &cropRect).release(); |
} |
return new SkTileImageFilter(srcRect, dstRect, input); |
} |