Chromium Code Reviews| Index: Source/core/html/canvas/WebGLExtensionNames.h |
| diff --git a/Source/core/html/canvas/WebGLCompressedTexturePVRTC.h b/Source/core/html/canvas/WebGLExtensionNames.h |
| similarity index 63% |
| copy from Source/core/html/canvas/WebGLCompressedTexturePVRTC.h |
| copy to Source/core/html/canvas/WebGLExtensionNames.h |
| index 8e1330bdf63c627e3b550a3d44f865e6b7fbde64..29f749be0c487877fad976279fa580c910bad1cd 100644 |
| --- a/Source/core/html/canvas/WebGLCompressedTexturePVRTC.h |
| +++ b/Source/core/html/canvas/WebGLExtensionNames.h |
| @@ -23,28 +23,34 @@ |
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -#ifndef WebGLCompressedTexturePVRTC_h |
| -#define WebGLCompressedTexturePVRTC_h |
| - |
| -#include "bindings/v8/ScriptWrappable.h" |
| -#include "core/html/canvas/WebGLExtension.h" |
| -#include "wtf/PassRefPtr.h" |
| +#ifndef WebGLExtensionNames_h |
| +#define WebGLExtensionNames_h |
| namespace WebCore { |
| -class WebGLCompressedTexturePVRTC : public WebGLExtension, public ScriptWrappable { |
| -public: |
| - static PassRefPtr<WebGLCompressedTexturePVRTC> create(WebGLRenderingContext*); |
| - static bool supported(WebGLRenderingContext*); |
| - static const char* getExtensionName(); |
| - |
| - virtual ~WebGLCompressedTexturePVRTC(); |
| - virtual ExtensionName getName() const; |
| - |
| -private: |
| - WebGLCompressedTexturePVRTC(WebGLRenderingContext*); |
| +// Extension names are needed to properly wrap instances in JavaScript objects. |
| +enum WebGLExtensionName { |
|
bajones
2013/09/24 00:12:01
These used to live under WebGLExtension, moved out
|
| + ANGLEInstancedArraysName, |
| + EXTFragDepthName, |
| + EXTTextureFilterAnisotropicName, |
| + OESElementIndexUintName, |
| + OESStandardDerivativesName, |
| + OESTextureFloatLinearName, |
| + OESTextureFloatName, |
| + OESTextureHalfFloatLinearName, |
| + OESTextureHalfFloatName, |
| + OESVertexArrayObjectName, |
| + WebGLCompressedTextureATCName, |
| + WebGLCompressedTexturePVRTCName, |
| + WebGLCompressedTextureS3TCName, |
| + WebGLDebugRendererInfoName, |
| + WebGLDebugShadersName, |
| + WebGLDepthTextureName, |
| + WebGLDrawBuffersName, |
| + WebGLLoseContextName, |
| + WebGLExtensionNameCount, // Must be the last entry |
|
bajones
2013/09/24 00:12:01
Allows the array of "extensionEnabled" bools in th
|
| }; |
| } // namespace WebCore |
| -#endif // WebGLCompressedTexturePVRTC_h |
| +#endif // WebGLExtensionNames_h |