| Index: Source/core/html/canvas/WebGLExtension.h
|
| diff --git a/Source/core/html/canvas/WebGLExtension.h b/Source/core/html/canvas/WebGLExtension.h
|
| index 1bd4c8bcae9637195bea274157cf0cc48fd7d69b..66e072ed2de5fe3ae18949ac6f9f33442b1a7f38 100644
|
| --- a/Source/core/html/canvas/WebGLExtension.h
|
| +++ b/Source/core/html/canvas/WebGLExtension.h
|
| @@ -26,7 +26,8 @@
|
| #ifndef WebGLExtension_h
|
| #define WebGLExtension_h
|
|
|
| -#include "core/html/canvas/WebGLRenderingContext.h"
|
| +#include "core/html/canvas/WebGLExtensionName.h"
|
| +#include "core/html/canvas/WebGLRenderingContextBase.h"
|
| #include "wtf/RefCounted.h"
|
|
|
| namespace WebCore {
|
| @@ -34,36 +35,14 @@ namespace WebCore {
|
| class WebGLExtension : public RefCounted<WebGLExtension> {
|
| WTF_MAKE_FAST_ALLOCATED;
|
| public:
|
| - // Extension names are needed to properly wrap instances in JavaScript objects.
|
| - enum ExtensionName {
|
| - ANGLEInstancedArraysName,
|
| - EXTFragDepthName,
|
| - EXTTextureFilterAnisotropicName,
|
| - OESElementIndexUintName,
|
| - OESStandardDerivativesName,
|
| - OESTextureFloatLinearName,
|
| - OESTextureFloatName,
|
| - OESTextureHalfFloatLinearName,
|
| - OESTextureHalfFloatName,
|
| - OESVertexArrayObjectName,
|
| - WebGLCompressedTextureATCName,
|
| - WebGLCompressedTexturePVRTCName,
|
| - WebGLCompressedTextureS3TCName,
|
| - WebGLDebugRendererInfoName,
|
| - WebGLDebugShadersName,
|
| - WebGLDepthTextureName,
|
| - WebGLDrawBuffersName,
|
| - WebGLLoseContextName,
|
| - };
|
| -
|
| - WebGLRenderingContext* context() { return m_context; }
|
| + WebGLRenderingContextBase* context() { return m_context; }
|
|
|
| virtual ~WebGLExtension();
|
| - virtual ExtensionName name() const = 0;
|
| + virtual WebGLExtensionName name() const = 0;
|
|
|
| // Lose this extension. Passing true = force loss. Some extensions
|
| // like WEBGL_lose_context are not normally lost when the context
|
| - // is lost but must be lost when destroying their WebGLRenderingContext.
|
| + // is lost but must be lost when destroying their WebGLRenderingContextBase.
|
| virtual void lose(bool)
|
| {
|
| m_context = 0;
|
| @@ -75,9 +54,9 @@ public:
|
| }
|
|
|
| protected:
|
| - WebGLExtension(WebGLRenderingContext*);
|
| + WebGLExtension(WebGLRenderingContextBase*);
|
|
|
| - WebGLRenderingContext* m_context;
|
| + WebGLRenderingContextBase* m_context;
|
| };
|
|
|
| } // namespace WebCore
|
|
|