Index: src/core/SkDeviceImageFilterProxy.h |
diff --git a/src/core/SkDeviceImageFilterProxy.h b/src/core/SkDeviceImageFilterProxy.h |
index 0b83b1a81eaf04e1104d8642192a6a7649d58493..d7ab6468679820ca29dbd395008dd89590bd05bc 100644 |
--- a/src/core/SkDeviceImageFilterProxy.h |
+++ b/src/core/SkDeviceImageFilterProxy.h |
@@ -15,7 +15,10 @@ public: |
SkDeviceImageFilterProxy(SkBaseDevice* device) : fDevice(device) {} |
virtual SkBaseDevice* createDevice(int w, int h) SK_OVERRIDE { |
- return fDevice->createCompatibleDeviceForImageFilter(SkImageInfo::MakeN32Premul(w, h)); |
+ SkBaseDevice::CreateInfo cinfo(SkImageInfo::MakeN32Premul(w, h), |
+ SkBaseDevice::kImageFilter_Usage, |
+ kUnknown_SkPixelGeometry); |
+ return fDevice->onCreateCompatibleDevice(cinfo); |
} |
virtual bool canHandleImageFilter(const SkImageFilter* filter) SK_OVERRIDE { |
return fDevice->canHandleImageFilter(filter); |