summaryrefslogtreecommitdiffstats
path: root/skia/ext/bitmap_platform_device_mac.cc
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/bitmap_platform_device_mac.cc')
-rw-r--r--skia/ext/bitmap_platform_device_mac.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/skia/ext/bitmap_platform_device_mac.cc b/skia/ext/bitmap_platform_device_mac.cc
index 5204468..871ca83 100644
--- a/skia/ext/bitmap_platform_device_mac.cc
+++ b/skia/ext/bitmap_platform_device_mac.cc
@@ -237,11 +237,12 @@ void BitmapPlatformDevice::DrawToNativeContext(CGContextRef context, int x,
ReleaseBitmapContext();
}
-SkBaseDevice* BitmapPlatformDevice::onCreateDevice(const SkImageInfo& info,
- Usage /*usage*/) {
- SkASSERT(info.colorType() == kN32_SkColorType);
- return BitmapPlatformDevice::CreateAndClear(info.width(), info.height(),
- info.isOpaque());
+SkBaseDevice* BitmapPlatformDevice::onCreateCompatibleDevice(
+ const CreateInfo& info) {
+ SkASSERT(info.fInfo.colorType() == kN32_SkColorType);
+ return BitmapPlatformDevice::CreateAndClear(info.fInfo.width(),
+ info.fInfo.height(),
+ info.fInfo.isOpaque());
}
// PlatformCanvas impl