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

Unified Diff: ui/gl/gl_context_egl.cc

Issue 2354423002: Enable ANGLE ES3 by default in Chromium (Windows) (Closed)
Patch Set: order Created 4 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: ui/gl/gl_context_egl.cc
diff --git a/ui/gl/gl_context_egl.cc b/ui/gl/gl_context_egl.cc
index 6af5611d08ffee62bc4e5fe8e1bd08567e12b877..64ba1431d8f142120526d1b9fd0f063b613a370b 100644
--- a/ui/gl/gl_context_egl.cc
+++ b/ui/gl/gl_context_egl.cc
@@ -52,9 +52,9 @@ bool GLContextEGL::Initialize(
}
EGLint context_client_version = 2;
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableUnsafeES3APIs) &&
- (config_renderable_type & EGL_OPENGL_ES3_BIT) != 0) {
+ if ((config_renderable_type & EGL_OPENGL_ES3_BIT) != 0 &&
+ !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableES3ANGLE)) {
Ken Russell (switch to Gerrit) 2016/09/21 21:18:32 Thinking about this more, perhaps the switch and d
Zhenyao Mo 2016/09/21 21:39:06 I suggest use "disable_es3_gl_context" instead, be
context_client_version = 3;
}
@@ -86,7 +86,6 @@ bool GLContextEGL::Initialize(
return false;
}
-
context_ = eglCreateContext(
display_,
config_,

Powered by Google App Engine
This is Rietveld 408576698