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

Unified Diff: ui/gl/gl_context_wgl.cc

Issue 2473933002: Enable WebGL 2 by default! (on desktop) (Closed)
Patch Set: undo rename of GpuPreferences::enable_unsafe_es3_apis Created 4 years, 1 month 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 | « tools/metrics/histograms/histograms.xml ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context_wgl.cc
diff --git a/ui/gl/gl_context_wgl.cc b/ui/gl/gl_context_wgl.cc
index 6362856f04b4329ec025a8be9b9787601b82b3ec..51b140b4907bc007216e60e19ed6a4d3d4e2e2f5 100644
--- a/ui/gl/gl_context_wgl.cc
+++ b/ui/gl/gl_context_wgl.cc
@@ -31,8 +31,8 @@ bool GLContextWGL::Initialize(
strstr(wglGetExtensionsStringARB(device_context),
"WGL_ARB_create_context") != nullptr;
bool create_core_profile = has_wgl_create_context_arb &&
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableUnsafeES3APIs);
+ !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableES3GLContext);
if (create_core_profile) {
std::pair<int, int> attempt_versions[] = {
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698