Index: skia/ext/bitmap_platform_device_skia.cc |
diff --git a/skia/ext/bitmap_platform_device_skia.cc b/skia/ext/bitmap_platform_device_skia.cc |
index ee44e26af828437d5fe4a47b2cbb8b9e3c997834..1dcf13b0adc048173d7dfe1b034440ae81fe3eb7 100644 |
--- a/skia/ext/bitmap_platform_device_skia.cc |
+++ b/skia/ext/bitmap_platform_device_skia.cc |
@@ -51,11 +51,11 @@ BitmapPlatformDevice::BitmapPlatformDevice(const SkBitmap& bitmap) |
BitmapPlatformDevice::~BitmapPlatformDevice() { |
} |
-SkBaseDevice* BitmapPlatformDevice::onCreateDevice(const SkImageInfo& info, |
- Usage /*usage*/) { |
- SkASSERT(info.colorType() == kN32_SkColorType); |
- return BitmapPlatformDevice::Create(info.width(), info.height(), |
- info.isOpaque()); |
+SkBaseDevice* BitmapPlatformDevice::onCreateCompatibleDevice( |
+ const CreateInfo& info) { |
+ SkASSERT(info.fInfo.colorType() == kN32_SkColorType); |
+ return BitmapPlatformDevice::Create(info.fInfo.width(), info.fInfo.height(), |
+ info.fInfo.isOpaque()); |
} |
PlatformSurface BitmapPlatformDevice::BeginPlatformPaint() { |