Index: src/core/SkDeviceImageFilterProxy.h |
diff --git a/src/core/SkDeviceImageFilterProxy.h b/src/core/SkDeviceImageFilterProxy.h |
index 11a95ff31fff0ed4feaa82e8124392569d89d681..0ae686d877df4b81eb0b2c68bfe566a91d96af5c 100644 |
--- a/src/core/SkDeviceImageFilterProxy.h |
+++ b/src/core/SkDeviceImageFilterProxy.h |
@@ -18,15 +18,15 @@ |
: fDevice(device) |
, fProps(props.flags(), |
SkBaseDevice::CreateInfo::AdjustGeometry(SkImageInfo(), |
- SkBaseDevice::kPossible_TileUsage, |
+ SkBaseDevice::kImageFilter_Usage, |
props.pixelGeometry())) |
{} |
SkBaseDevice* createDevice(int w, int h) SK_OVERRIDE { |
SkBaseDevice::CreateInfo cinfo(SkImageInfo::MakeN32Premul(w, h), |
- SkBaseDevice::kPossible_TileUsage, |
+ SkBaseDevice::kImageFilter_Usage, |
kUnknown_SkPixelGeometry); |
- return fDevice->onCreateDevice(cinfo, NULL); |
+ return fDevice->onCreateCompatibleDevice(cinfo); |
} |
bool canHandleImageFilter(const SkImageFilter* filter) SK_OVERRIDE { |
return fDevice->canHandleImageFilter(filter); |