Index: Source/core/html/canvas/WebGLRenderingContextBase.h |
diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.h b/Source/core/html/canvas/WebGLRenderingContextBase.h |
index 9e9f323fb347bd807877ab0c4afb8bd90aeab76d..7c8ea0129aaa083a27b6a7378c2a2b2ec9b30ba4 100644 |
--- a/Source/core/html/canvas/WebGLRenderingContextBase.h |
+++ b/Source/core/html/canvas/WebGLRenderingContextBase.h |
@@ -35,6 +35,7 @@ |
#include "platform/Timer.h" |
#include "platform/graphics/GraphicsTypes3D.h" |
#include "platform/graphics/ImageBuffer.h" |
+#include "platform/graphics/gpu/DrawingBuffer.h" |
#include "platform/graphics/gpu/Extensions3DUtil.h" |
#include "platform/graphics/gpu/WebGLImageConversion.h" |
#include "public/platform/WebGraphicsContext3D.h" |
@@ -50,7 +51,6 @@ class WebLayer; |
namespace WebCore { |
class ANGLEInstancedArrays; |
-class DrawingBuffer; |
class EXTFragDepth; |
class EXTTextureFilterAnisotropic; |
class ExceptionState; |
@@ -205,7 +205,7 @@ public: |
void hint(GLenum target, GLenum mode); |
GLboolean isBuffer(WebGLBuffer*); |
- bool isContextLost(); |
+ bool isContextLost() const; |
GLboolean isEnabled(GLenum cap); |
GLboolean isFramebuffer(WebGLFramebuffer*); |
GLboolean isProgram(WebGLProgram*); |
@@ -324,7 +324,7 @@ public: |
void forceRestoreContext(); |
void loseContextImpl(LostContextMode); |
- blink::WebGraphicsContext3D* webGraphicsContext3D() const { return m_context.get(); } |
+ blink::WebGraphicsContext3D* webContext() const { return m_drawingBuffer->context(); } |
WebGLContextGroup* contextGroup() const { return m_contextGroup.get(); } |
virtual blink::WebLayer* platformLayer() const OVERRIDE; |
Extensions3DUtil* extensionsUtil(); |
@@ -392,12 +392,10 @@ protected: |
WebGLRenderbuffer* ensureEmulatedStencilBuffer(GLenum target, WebGLRenderbuffer*); |
- OwnPtr<blink::WebGraphicsContext3D> m_context; |
- RefPtr<WebGLContextGroup> m_contextGroup; |
- |
// Structure for rendering to a DrawingBuffer, instead of directly |
// to the back-buffer of m_context. |
RefPtr<DrawingBuffer> m_drawingBuffer; |
+ RefPtr<WebGLContextGroup> m_contextGroup; |
// Dispatches a context lost event once it is determined that one is needed. |
// This is used both for synthetic and real context losses. For real ones, it's |