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

Unified Diff: skia/ext/vector_platform_device_cairo_linux.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_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_;

Powered by Google App Engine
This is Rietveld 408576698