Index: webkit/port/platform/graphics/PlatformContextSkia.h |
diff --git a/webkit/port/platform/graphics/PlatformContextSkia.h b/webkit/port/platform/graphics/PlatformContextSkia.h |
index a0c72e0f07ca03dcd4740f6753bf97c9df3bb4eb..c7a16da5a4a25f380949aabf9b76dee5d831d8a6 100644 |
--- a/webkit/port/platform/graphics/PlatformContextSkia.h |
+++ b/webkit/port/platform/graphics/PlatformContextSkia.h |
@@ -40,6 +40,8 @@ |
#include "GraphicsContext.h" |
#include "wtf/Vector.h" |
+typedef struct _GdkDrawable GdkSkia; |
+ |
// This class holds the platform-specific state for GraphicsContext. We put |
// most of our Skia wrappers on this class. In theory, a lot of this stuff could |
// be moved to GraphicsContext directly, except that some code external to this |
@@ -137,6 +139,10 @@ public: |
// possible quality. |
bool IsPrinting(); |
+#if defined(OS_LINUX) |
+ GdkSkia* gdk_skia() const { return m_gdkskia; } |
+#endif |
+ |
private: |
// Defines drawing style. |
struct State; |
@@ -157,6 +163,11 @@ private: |
// Disallow these. |
PlatformContextSkia(const PlatformContextSkia&); |
void operator=(const PlatformContextSkia&); |
+ |
+#if defined(OS_LINUX) |
+ // A pointer to a GDK Drawable wrapping of this Skia canvas |
+ GdkSkia* m_gdkskia; |
+#endif |
}; |
#endif // PlatformContextSkia_h |