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

Unified Diff: webkit/port/platform/graphics/PlatformContextSkia.h

Issue 9757: Cache the GdkSkia object in PlatformContextSkia so that we aren't creating (Closed)
Patch Set: Moving files against Created 12 years, 1 month 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: 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
« no previous file with comments | « webkit/port/platform/chromium/gdkskiadrawable.cc ('k') | webkit/port/platform/graphics/PlatformContextSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698