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

Unified Diff: skia/ext/vector_platform_device_cairo_linux.h

Issue 7273013: Stop using deprecated factory API for SkDevice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « skia/ext/vector_canvas_unittest.cc ('k') | skia/ext/vector_platform_device_cairo_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/vector_platform_device_cairo_linux.h
===================================================================
--- skia/ext/vector_platform_device_cairo_linux.h (revision 91505)
+++ skia/ext/vector_platform_device_cairo_linux.h (working copy)
@@ -14,17 +14,6 @@
namespace skia {
-class SK_API VectorPlatformDeviceCairoFactory : public SkDeviceFactory {
- public:
- static PlatformDevice* CreateDevice(cairo_t* context, int width, int height,
- bool isOpaque);
-
- // Overridden from SkDeviceFactory:
- virtual SkDevice* newDevice(SkCanvas* ignored, SkBitmap::Config config,
- int width, int height,
- bool isOpaque, bool isForLayer);
-};
-
// This device is basically a wrapper that provides a surface for SkCanvas
// to draw into. It is basically an adaptor which converts skia APIs into
// cooresponding Cairo APIs and outputs to a Cairo surface. Please NOTE that
@@ -34,9 +23,8 @@
public:
virtual ~VectorPlatformDeviceCairo();
- // Factory function. Ownership of |context| is not transferred.
- static VectorPlatformDeviceCairo* create(PlatformSurface context,
- int width, int height);
+ static PlatformDevice* CreateDevice(cairo_t* context, int width, int height,
+ bool isOpaque);
// Clean up cached fonts. It is an error to call this while some
// VectorPlatformDeviceCairo callee is still using fonts created for it by
@@ -88,8 +76,9 @@
explicit VectorPlatformDeviceCairo(PlatformSurface context,
const SkBitmap& bitmap);
- // Override from SkDevice (through PlatformDevice).
- virtual SkDeviceFactory* onNewDeviceFactory();
+ virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config, int width,
+ int height, bool isOpaque,
+ Usage usage);
private:
// Apply paint's color in the context.
« no previous file with comments | « skia/ext/vector_canvas_unittest.cc ('k') | skia/ext/vector_platform_device_cairo_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698