Chromium Code Reviews| Index: skia/ext/bitmap_platform_device_mac.cc |
| =================================================================== |
| --- skia/ext/bitmap_platform_device_mac.cc (revision 90617) |
| +++ skia/ext/bitmap_platform_device_mac.cc (working copy) |
| @@ -50,15 +50,6 @@ |
| } // namespace |
| -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(NULL, width, height, isOpaque); |
| -} |
| - |
| BitmapPlatformDevice::BitmapPlatformDeviceData::BitmapPlatformDeviceData( |
| CGContextRef bitmap) |
| : bitmap_context_(bitmap), |
| @@ -243,8 +234,10 @@ |
| // Not needed in CoreGraphics |
| } |
| -SkDeviceFactory* BitmapPlatformDevice::onNewDeviceFactory() { |
| - return SkNEW(BitmapPlatformDeviceFactory); |
| +SkDevice* BitmapPlatformDevice::onCreateCompatibleDevice( |
| + SkBitmap::Config config, int width, int height, bool isOpaque, Usage) { |
| + SkASSERT(config == SkBitmap::kARGB_8888_Config); |
|
alokp
2011/06/28 16:19:46
ditto and elsewhere
|
| + return BitmapPlatformDevice::Create(NULL, width, height, isOpaque); |
| } |
| } // namespace skia |