Index: src/image/SkImage_Gpu.cpp |
diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp |
index ed9ecffa51c91e1fc61ca147be4c485c465e8d12..e6d6edf79f782e8988f63b1aa0f7f5587dba87d3 100644 |
--- a/src/image/SkImage_Gpu.cpp |
+++ b/src/image/SkImage_Gpu.cpp |
@@ -238,7 +238,8 @@ SkImage* SkImage_Gpu::onApplyFilter(SkImageFilter* filter, SkIPoint* offsetResul |
const SkIRect clipBounds = srcBounds; |
SkGpuImageFilterProxy proxy(fTexture->getContext()); |
- SkImageFilter::Context ctx(SkMatrix::I(), clipBounds, SkImageFilter::Cache::Get()); |
+ SkAutoTUnref<SkImageFilter::Cache> cache(SkGpuDevice::NewImageFilterCache()); |
+ SkImageFilter::Context ctx(SkMatrix::I(), clipBounds, cache); |
SkBitmap dst; |
if (!filter->filterImage(&proxy, src, ctx, &dst, offsetResult)) { |