| Index: skia/ext/bitmap_platform_device_linux.cc
|
| ===================================================================
|
| --- skia/ext/bitmap_platform_device_linux.cc (revision 91504)
|
| +++ skia/ext/bitmap_platform_device_linux.cc (working copy)
|
| @@ -37,6 +37,15 @@
|
|
|
| } // 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),
|
| @@ -127,11 +136,8 @@
|
| BitmapPlatformDevice::~BitmapPlatformDevice() {
|
| }
|
|
|
| -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);
|
| +SkDeviceFactory* BitmapPlatformDevice::onNewDeviceFactory() {
|
| + return SkNEW(BitmapPlatformDeviceFactory);
|
| }
|
|
|
| cairo_t* BitmapPlatformDevice::BeginPlatformPaint() {
|
|
|