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

Unified Diff: skia/ext/platform_canvas_linux.h

Issue 42056: Basic windowless plugins, try 2. (Closed)
Patch Set: review comments Created 11 years, 9 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_linux.h ('k') | skia/ext/platform_canvas_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_canvas_linux.h
diff --git a/skia/ext/platform_canvas_linux.h b/skia/ext/platform_canvas_linux.h
index 1cf87a81b72fb3d1617124cd80eb6a8735e2f2c5..a1cd1ab59dce7549c737a11130f068264f639432 100644
--- a/skia/ext/platform_canvas_linux.h
+++ b/skia/ext/platform_canvas_linux.h
@@ -32,6 +32,13 @@ class PlatformCanvasLinux : public SkCanvas {
bool initialize(int width, int height, bool is_opaque);
bool initialize(int width, int height, bool is_opaque, uint8_t* data);
+ // These calls should surround calls to platform-specific drawing routines.
+ // The cairo_surface_t* returned by beginPlatformPaint represents the
+ // memory that can be used to draw into.
+ // endPlatformPaint is a no-op; it is used for symmetry with Windows.
+ cairo_surface_t* beginPlatformPaint();
+ void endPlatformPaint() {}
+
// Returns the platform device pointer of the topmost rect with a non-empty
// clip. Both the windows and mac versions have an equivalent of this method;
// a Linux version is added for compatibility.
« no previous file with comments | « skia/ext/bitmap_platform_device_linux.h ('k') | skia/ext/platform_canvas_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698