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

Unified Diff: Source/WebCore/bindings/dart/custom/DartWebGLRenderingContextCustom.cpp

Issue 12684015: Fix Dartium WebGL regression. Remove default case in switch to catch this early next time when the … (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/bindings/dart/custom/DartWebGLRenderingContextCustom.cpp
diff --git a/Source/WebCore/bindings/dart/custom/DartWebGLRenderingContextCustom.cpp b/Source/WebCore/bindings/dart/custom/DartWebGLRenderingContextCustom.cpp
index e33533e9f393c898ed7e6c70ff76702ebd0e3756..6874a12e106f6a1c12d0dbf1fcc6baa0a2c0b794 100644
--- a/Source/WebCore/bindings/dart/custom/DartWebGLRenderingContextCustom.cpp
+++ b/Source/WebCore/bindings/dart/custom/DartWebGLRenderingContextCustom.cpp
@@ -36,6 +36,7 @@
#include "DartArrayBufferView.h"
#include "DartArrayBufferViewCustom.h"
#include "DartDOMWrapper.h"
+#include "DartEXTDrawBuffers.h"
#include "DartEXTTextureFilterAnisotropic.h"
#include "DartFloat32Array.h"
#include "DartHTMLCanvasElement.h"
@@ -45,8 +46,10 @@
#include "DartInt16Array.h"
#include "DartInt32Array.h"
#include "DartInt8Array.h"
+#include "DartOESElementIndexUint.h"
#include "DartOESStandardDerivatives.h"
#include "DartOESTextureFloat.h"
+#include "DartOESTextureHalfFloat.h"
#include "DartOESVertexArrayObject.h"
#include "DartUint16Array.h"
#include "DartUint32Array.h"
@@ -97,14 +100,20 @@ static Dart_Handle webGLExtensionToDart(WebGLExtension* extension)
switch (extension->getName()) {
case WebGLExtension::WebGLLoseContextName:
return DartWebGLLoseContext::toDart(static_cast<WebGLLoseContext*>(extension));
+ case WebGLExtension::EXTDrawBuffersName:
+ return DartEXTDrawBuffers::toDart(static_cast<EXTDrawBuffers*>(extension));
case WebGLExtension::EXTTextureFilterAnisotropicName:
return DartEXTTextureFilterAnisotropic::toDart(static_cast<EXTTextureFilterAnisotropic*>(extension));
case WebGLExtension::OESStandardDerivativesName:
return DartOESStandardDerivatives::toDart(static_cast<OESStandardDerivatives*>(extension));
case WebGLExtension::OESTextureFloatName:
return DartOESTextureFloat::toDart(static_cast<OESTextureFloat*>(extension));
+ case WebGLExtension::OESTextureHalfFloatName:
+ return DartOESTextureHalfFloat::toDart(static_cast<OESTextureHalfFloat*>(extension));
case WebGLExtension::OESVertexArrayObjectName:
return DartOESVertexArrayObject::toDart(static_cast<OESVertexArrayObject*>(extension));
+ case WebGLExtension::OESElementIndexUintName:
+ return DartOESElementIndexUint::toDart(static_cast<OESElementIndexUint*>(extension));
case WebGLExtension::WebGLDebugRendererInfoName:
return DartWebGLDebugRendererInfo::toDart(static_cast<WebGLDebugRendererInfo*>(extension));
case WebGLExtension::WebGLDebugShadersName:
@@ -113,10 +122,10 @@ static Dart_Handle webGLExtensionToDart(WebGLExtension* extension)
return DartWebGLCompressedTextureS3TC::toDart(static_cast<WebGLCompressedTextureS3TC*>(extension));
case WebGLExtension::WebGLDepthTextureName:
return DartWebGLDepthTexture::toDart(static_cast<WebGLDepthTexture*>(extension));
- default:
- ASSERT_NOT_REACHED();
- return 0;
}
+
+ ASSERT_NOT_REACHED();
+ return 0;
}
static Dart_Handle webGLGetInfoToDart(const WebGLGetInfo& info)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698