Index: skia/ext/bitmap_platform_device_mac.cc |
diff --git a/skia/ext/bitmap_platform_device_mac.cc b/skia/ext/bitmap_platform_device_mac.cc |
index 5204468bce952e2ac6262ae60848b53eadcfbcf5..871ca832b2f2a16577f246acd1490c931852877a 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 |