Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Unified Diff: skia/ext/vector_platform_device_emf_win.cc

Issue 7273013: Stop using deprecated factory API for SkDevice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
}

Powered by Google App Engine
This is Rietveld 408576698