diff options
Diffstat (limited to 'skia/ext/bitmap_platform_device_win.cc')
-rw-r--r-- | skia/ext/bitmap_platform_device_win.cc | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/skia/ext/bitmap_platform_device_win.cc b/skia/ext/bitmap_platform_device_win.cc index 366bdd0..f1345fa 100644 --- a/skia/ext/bitmap_platform_device_win.cc +++ b/skia/ext/bitmap_platform_device_win.cc @@ -15,15 +15,6 @@ namespace skia { -SkDevice* BitmapPlatformDeviceFactory::newDevice(SkCanvas* ignored, - SkBitmap::Config config, - int width, int height, - bool isOpaque, - bool isForLayer) { - SkASSERT(config == SkBitmap::kARGB_8888_Config); - return BitmapPlatformDevice::create(width, height, isOpaque, NULL); -} - BitmapPlatformDevice::BitmapPlatformDeviceData::BitmapPlatformDeviceData( HBITMAP hbitmap) : bitmap_context_(hbitmap), @@ -263,8 +254,11 @@ void BitmapPlatformDevice::onAccessBitmap(SkBitmap* bitmap) { GdiFlush(); } -SkDeviceFactory* BitmapPlatformDevice::onNewDeviceFactory() { - return SkNEW(BitmapPlatformDeviceFactory); +SkDevice* BitmapPlatformDevice::onCreateCompatibleDevice( + SkBitmap::Config config, int width, int height, bool isOpaque, + Usage /*usage*/) { + SkASSERT(config == SkBitmap::kARGB_8888_Config); + return BitmapPlatformDevice::create(width, height, isOpaque, NULL); } } // namespace skia |