Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index abccd193a17731629b8be531e6006bfe6862c094..fceacfc913249e574742407ef497e4592f3685fc 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -2015,10 +2015,14 @@ bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkCanvas* mainCanvas, const SkPicture |
#endif |
} |
+SkImageFilter::Cache* SkGpuDevice::NewImageFilterCache() { |
+ return SkImageFilter::Cache::Create(kDefaultImageFilterCacheSize); |
+} |
+ |
SkImageFilter::Cache* SkGpuDevice::getImageFilterCache() { |
// We always return a transient cache, so it is freed after each |
// filter traversal. |
- return SkImageFilter::Cache::Create(kDefaultImageFilterCacheSize); |
+ return SkGpuDevice::NewImageFilterCache(); |
} |
#endif |