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

Unified Diff: ui/gl/gl_context_egl.cc

Issue 2354423002: Enable ANGLE ES3 by default in Chromium (Windows) (Closed)
Patch Set: rebase 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
« no previous file with comments | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | ui/gl/gl_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b1ea4e6a77040716cc441e2287edb1267613fd76 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::kDisableES3GLContext)) {
context_client_version = 3;
}
@@ -86,7 +86,6 @@ bool GLContextEGL::Initialize(
return false;
}
-
context_ = eglCreateContext(
display_,
config_,
« no previous file with comments | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | ui/gl/gl_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698