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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp

Issue 2444813002: Remove unsafe mode to enable es3 api by default for WebGL2 and ES3 context (Closed)
Patch Set: remove runtime flag unsafeES3APIs from blink webgl module Created 4 years, 2 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: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp
index 65d594fcf56829838f1ef664a98ca31012ee86d8..d42ff15e966cd5551aa43af7159cffc7e24f005a 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp
@@ -38,12 +38,12 @@ CanvasRenderingContext* WebGL2RenderingContext::Factory::create(
HTMLCanvasElement* canvas,
const CanvasContextCreationAttributes& attrs,
Document&) {
- if (!RuntimeEnabledFeatures::unsafeES3APIsEnabled()) {
+ /* if (!RuntimeEnabledFeatures::unsafeES3APIsEnabled()) {
canvas->dispatchEvent(WebGLContextEvent::create(
EventTypeNames::webglcontextcreationerror, false, true,
"Creation of WebGL2 contexts disabled."));
return nullptr;
- }
+ } */
std::unique_ptr<WebGraphicsContext3DProvider> contextProvider(
createWebGraphicsContext3DProvider(canvas, attrs, 2));
« no previous file with comments | « gpu/command_buffer/tests/fuzzer_main.cc ('k') | third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698