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

Unified Diff: ui/gl/gl_surface_egl.cc

Issue 2444813002: Remove unsafe mode to enable es3 api by default for WebGL2 and ES3 context (Closed)
Patch Set: fix a bug 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
« no previous file with comments | « ui/gl/gl_context_wgl.cc ('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_surface_egl.cc
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
index 1b82c97888c590d26f12d6cc28d7b792a5aa5cea..cb7a6df9693c5bfd47654544ee22449e39ced117 100644
--- a/ui/gl/gl_surface_egl.cc
+++ b/ui/gl/gl_surface_egl.cc
@@ -231,11 +231,8 @@ EGLConfig ChooseConfig(GLSurface::Format format) {
// Choose an EGL configuration.
// On X this is only used for PBuffer surfaces.
std::vector<EGLint> renderable_types;
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableUnsafeES3APIs)) {
- renderable_types.push_back(EGL_OPENGL_ES3_BIT);
- }
renderable_types.push_back(EGL_OPENGL_ES2_BIT);
+ renderable_types.push_back(EGL_OPENGL_ES3_BIT);
EGLint buffer_size = 32;
EGLint alpha_size = 8;
« no previous file with comments | « ui/gl/gl_context_wgl.cc ('k') | ui/gl/gl_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698