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

Unified Diff: skia/ext/platform_canvas.h

Issue 3590011: Update use of SkCanvas and SkDevice to match change in Skia (Closed)
Patch Set: Bump deps again to bring in fix for memory leak Created 10 years, 2 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/bitmap_platform_device_win.cc ('k') | skia/ext/platform_canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_canvas.h
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h
index 1863d77a7586606f28e04d7579b0f168bbdd38be..b602ed46ca3e3aa3417ec7761c0eb9a617c1701d 100644
--- a/skia/ext/platform_canvas.h
+++ b/skia/ext/platform_canvas.h
@@ -18,10 +18,11 @@ namespace skia {
// using both Skia operations and platform-specific operations.
class PlatformCanvas : public SkCanvas {
public:
- // Set is_opaque if you are going to erase the bitmap and not use
- // transparency: this will enable some optimizations.
// If you use the version with no arguments, you MUST call initialize()
PlatformCanvas();
+ explicit PlatformCanvas(SkDeviceFactory* factory);
+ // Set is_opaque if you are going to erase the bitmap and not use
+ // transparency: this will enable some optimizations.
PlatformCanvas(int width, int height, bool is_opaque);
virtual ~PlatformCanvas();
@@ -96,16 +97,6 @@ class PlatformCanvas : public SkCanvas {
// FIXME(brettw) is this necessary?
using SkCanvas::clipRect;
- protected:
- // Creates a device store for use by the canvas. We override this so that
- // the device is always our own so we know that we can use platform
- // operations on it.
- virtual SkDevice* createDevice(SkBitmap::Config,
- int width,
- int height,
- bool is_opaque,
- bool isForLayer);
-
private:
// Unimplemented. This is to try to prevent people from calling this function
// on SkCanvas. SkCanvas' version is not virtual, so we can't prevent this
« no previous file with comments | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/platform_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698