Chromium Code Reviews| Index: skia/ext/vector_platform_device_cairo_linux.cc |
| =================================================================== |
| --- skia/ext/vector_platform_device_cairo_linux.cc (revision 90617) |
| +++ skia/ext/vector_platform_device_cairo_linux.cc (working copy) |
| @@ -68,13 +68,11 @@ |
| namespace skia { |
| -SkDevice* VectorPlatformDeviceCairoFactory::newDevice(SkCanvas* ignored, |
| - SkBitmap::Config config, |
| - int width, int height, |
| - bool isOpaque, |
| - bool isForLayer) { |
| +SkDevice* VectorPlatformDeviceCairo::onCreateCompatibleDevice( |
| + SkBitmap::Config config, int width, int height, bool isOpaque, Usage) { |
| SkASSERT(config == SkBitmap::kARGB_8888_Config); |
| - return CreateDevice(NULL, width, height, isOpaque); |
| + return VectorPlatformDeviceCairoFactory::CreateDevice(NULL, width, height, |
|
alokp
2011/06/28 16:19:46
Two things:
1. In chromium functions are defined i
|
| + isOpaque); |
| } |
| // static |
| @@ -129,10 +127,6 @@ |
| cairo_destroy(context_); |
| } |
| -SkDeviceFactory* VectorPlatformDeviceCairo::onNewDeviceFactory() { |
| - return SkNEW(VectorPlatformDeviceCairoFactory); |
| -} |
| - |
| PlatformDevice::PlatformSurface |
| VectorPlatformDeviceCairo::BeginPlatformPaint() { |
| return context_; |