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

Unified Diff: skia/ext/platform_device_linux.h

Issue 39105: Windowless plugins: basic drawing works. (Closed)
Patch Set: retry Created 11 years, 10 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/platform_device_linux.h
diff --git a/skia/ext/platform_device_linux.h b/skia/ext/platform_device_linux.h
index 5c16c08ac631bec0507aefd2033cc5ba2de5499e..9daeb702f6a19f7d44dba0943897e41aeacf2ff1 100644
--- a/skia/ext/platform_device_linux.h
+++ b/skia/ext/platform_device_linux.h
@@ -15,6 +15,15 @@ class PlatformDeviceLinux : public SkDevice {
// Returns if the preferred rendering engine is vectorial or bitmap based.
virtual bool IsVectorial() = 0;
+ // An X drawable. Avoid pulling in all of Xlib by typedef'ing.
+ typedef unsigned long XDrawable;
+
+ // Gets an X drawable that maps onto the drawing surface.
+ // This has the potential of being exceedingly slow; drawables are server-side
+ // but skia drawables are client-side, so we must copy all the data back and
+ // forth. Only used for plugin drawing.
+ virtual XDrawable GetXDrawable() = 0;
+
protected:
// Forwards |bitmap| to SkDevice's constructor.
PlatformDeviceLinux(const SkBitmap& bitmap);

Powered by Google App Engine
This is Rietveld 408576698