| Index: skia/ext/bitmap_platform_device_linux.cc
|
| ===================================================================
|
| --- skia/ext/bitmap_platform_device_linux.cc (revision 91287)
|
| +++ skia/ext/bitmap_platform_device_linux.cc (working copy)
|
| @@ -37,15 +37,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(width, height, isOpaque);
|
| -}
|
| -
|
| BitmapPlatformDevice::BitmapPlatformDeviceData::BitmapPlatformDeviceData(
|
| cairo_surface_t* surface)
|
| : surface_(surface),
|
| @@ -136,8 +127,11 @@
|
| BitmapPlatformDevice::~BitmapPlatformDevice() {
|
| }
|
|
|
| -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);
|
| }
|
|
|
| cairo_t* BitmapPlatformDevice::BeginPlatformPaint() {
|
|
|