diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/html/canvas/WebGLContextGroup.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/html/canvas/WebGLContextGroup.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/chromium/third_party/WebKit/Source/core/html/canvas/WebGLContextGroup.h b/chromium/third_party/WebKit/Source/core/html/canvas/WebGLContextGroup.h index b1fece9111b..6c2f9953540 100644 --- a/chromium/third_party/WebKit/Source/core/html/canvas/WebGLContextGroup.h +++ b/chromium/third_party/WebKit/Source/core/html/canvas/WebGLContextGroup.h @@ -26,17 +26,20 @@ #ifndef WebGLContextGroup_h #define WebGLContextGroup_h -#include "core/html/canvas/WebGLRenderingContext.h" +#include "core/html/canvas/WebGLRenderingContextBase.h" #include "wtf/HashSet.h" #include "wtf/PassRefPtr.h" #include "wtf/RefCounted.h" +namespace blink { +class WebGraphicsContext3D; +} + namespace WebCore { -class GraphicsContext3D; class WebGLExtension; class WebGLSharedObject; -class WebGLRenderingContext; +class WebGLRenderingContextBase; typedef int ExceptionCode; @@ -45,15 +48,15 @@ public: static PassRefPtr<WebGLContextGroup> create(); ~WebGLContextGroup(); - void addContext(WebGLRenderingContext*); - void removeContext(WebGLRenderingContext*); + void addContext(WebGLRenderingContextBase*); + void removeContext(WebGLRenderingContextBase*); void addObject(WebGLSharedObject*); void removeObject(WebGLSharedObject*); - GraphicsContext3D* getAGraphicsContext3D(); + blink::WebGraphicsContext3D* getAWebGraphicsContext3D(); - void loseContextGroup(WebGLRenderingContext::LostContextMode); + void loseContextGroup(WebGLRenderingContextBase::LostContextMode); private: friend class WebGLObject; @@ -62,7 +65,7 @@ public: void detachAndRemoveAllObjects(); - HashSet<WebGLRenderingContext*> m_contexts; + HashSet<WebGLRenderingContextBase*> m_contexts; HashSet<WebGLSharedObject*> m_groupObjects; }; |