summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/cairo/GLContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/cairo/GLContext.h')
-rw-r--r--Source/WebCore/platform/graphics/cairo/GLContext.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/cairo/GLContext.h b/Source/WebCore/platform/graphics/cairo/GLContext.h
index c23a46cf1..1a8807222 100644
--- a/Source/WebCore/platform/graphics/cairo/GLContext.h
+++ b/Source/WebCore/platform/graphics/cairo/GLContext.h
@@ -25,6 +25,10 @@
#include <wtf/Noncopyable.h>
#include <wtf/PassOwnPtr.h>
+#if PLATFORM(X11)
+typedef struct _XDisplay Display;
+#endif
+
namespace WebCore {
class GLContext {
@@ -39,9 +43,19 @@ public:
virtual ~GLContext();
virtual bool makeContextCurrent();
virtual void swapBuffers() = 0;
+ virtual void waitNative() = 0;
virtual bool canRenderToDefaultFramebuffer() = 0;
virtual IntSize defaultFrameBufferSize() = 0;
+#if PLATFORM(X11)
+ static Display* sharedX11Display();
+ static void cleanupSharedX11Display();
+#endif
+
+ static void addActiveContext(GLContext*);
+ static void removeActiveContext(GLContext*);
+ static void cleanupActiveContextsAtExit();
+
#if USE(3D_GRAPHICS)
virtual PlatformGraphicsContext3D platformContext() = 0;
#endif