Chromium Code Reviews| Index: skia/ext/bitmap_platform_device_win.cc |
| =================================================================== |
| --- skia/ext/bitmap_platform_device_win.cc (revision 91287) |
| +++ skia/ext/bitmap_platform_device_win.cc (working copy) |
| @@ -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,10 @@ |
| GdiFlush(); |
| } |
| -SkDeviceFactory* BitmapPlatformDevice::onNewDeviceFactory() { |
| - return SkNEW(BitmapPlatformDeviceFactory); |
| +SkDevice* BitmapPlatformDevice::onCreateCompatibleDevice( |
| + SkBitmap::Config config, int width, int height, bool isOpaque, Usage) { |
|
vandebo (ex-Chrome)
2011/07/01 17:20:14
nit: missing /*usage*/
|
| + SkASSERT(config == SkBitmap::kARGB_8888_Config); |
| + return BitmapPlatformDevice::create(width, height, isOpaque, NULL); |
| } |
| } // namespace skia |