Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(752)

Unified Diff: Source/core/html/canvas/WebGLExtensionNames.h

Issue 24096029: Moved the majority of WebGL functionality into WebGLRenderingContextBase (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revamped extension testing, added featureLevel Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698