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

Unified Diff: skia/ext/bitmap_platform_device_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 | « base/gfx/native_widget_types.h ('k') | skia/ext/platform_canvas_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_linux.h
diff --git a/skia/ext/bitmap_platform_device_linux.h b/skia/ext/bitmap_platform_device_linux.h
index d26c50d72a7faebcd3dfa93f5cf199b22028727b..bb261bd8c3623cb4d75526458d7b6c16fb550299 100644
--- a/skia/ext/bitmap_platform_device_linux.h
+++ b/skia/ext/bitmap_platform_device_linux.h
@@ -85,6 +85,10 @@ class BitmapPlatformDeviceLinux : public PlatformDeviceLinux {
// Bitmaps aren't vector graphics.
virtual bool IsVectorial() { return false; }
+ // If someone wants to paint on a Cairo surface version of our
+ // buffer, then give them the surface we're already using.
+ virtual cairo_surface_t* beginPlatformPaint() { return surface(); }
+
cairo_surface_t* surface() const;
private:
« no previous file with comments | « base/gfx/native_widget_types.h ('k') | skia/ext/platform_canvas_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698