summaryrefslogtreecommitdiffstats
path: root/skia/ext/bitmap_platform_device_linux.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 22:18:58 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-13 22:18:58 +0000
commita2d489b22f9e3f361adeaf7a09ae88510a2bb1e3 (patch)
treeff3dd61a3278c60286a820e9f07952e4571743e5 /skia/ext/bitmap_platform_device_linux.h
parent16ead307a2b27b7d02bae66792eaf3c2f904b9c0 (diff)
downloadchromium_src-a2d489b22f9e3f361adeaf7a09ae88510a2bb1e3.zip
chromium_src-a2d489b22f9e3f361adeaf7a09ae88510a2bb1e3.tar.gz
chromium_src-a2d489b22f9e3f361adeaf7a09ae88510a2bb1e3.tar.bz2
Basic windowless plugins, try 2.
In response to Dean's comment on http://codereview.chromium.org/39105, I redid that patch to put the X munging into the plugin implementation. This won't work for multiproc, but it's near the correct place and many things will need to be changed for multiproc. Review URL: http://codereview.chromium.org/42056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11674 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/bitmap_platform_device_linux.h')
-rw-r--r--skia/ext/bitmap_platform_device_linux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/skia/ext/bitmap_platform_device_linux.h b/skia/ext/bitmap_platform_device_linux.h
index d26c50d..bb261bd 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: