Index: skia/ext/vector_platform_device_emf_win.cc |
=================================================================== |
--- skia/ext/vector_platform_device_emf_win.cc (revision 90617) |
+++ skia/ext/vector_platform_device_emf_win.cc (working copy) |
@@ -12,13 +12,11 @@ |
namespace skia { |
-SkDevice* VectorPlatformDeviceEmfFactory::newDevice(SkCanvas* unused, |
- SkBitmap::Config config, |
- int width, int height, |
- bool isOpaque, |
- bool isForLayer) { |
+SkDevice* VectorPlatformDeviceEmf::onCreateCompatibleDevice( |
+ SkBitmap::Config config, int width, int height, bool isOpaque, Usage) { |
SkASSERT(config == SkBitmap::kARGB_8888_Config); |
- return CreateDevice(width, height, isOpaque, NULL); |
+ return VectorPlatformDeviceEmfFactory::CreateDevice(width, height, isOpaque, |
+ NULL); |
} |
//static |
@@ -115,10 +113,6 @@ |
SkASSERT(previous_pen_ == NULL); |
} |
-SkDeviceFactory* VectorPlatformDeviceEmf::onNewDeviceFactory() { |
- return SkNEW(VectorPlatformDeviceEmfFactory); |
-} |
- |
HDC VectorPlatformDeviceEmf::BeginPlatformPaint() { |
return hdc_; |
} |