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

Unified Diff: ui/gl/gl_context_wgl.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 | « gpu/command_buffer/tests/gl_request_extension_unittest.cc ('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..4f1e999308283293506bd7fee3eb9161fd5de6a5 100644
--- a/ui/gl/gl_context_wgl.cc
+++ b/ui/gl/gl_context_wgl.cc
@@ -30,9 +30,7 @@ bool GLContextWGL::Initialize(
bool has_wgl_create_context_arb =
strstr(wglGetExtensionsStringARB(device_context),
"WGL_ARB_create_context") != nullptr;
- bool create_core_profile = has_wgl_create_context_arb &&
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableUnsafeES3APIs);
+ bool create_core_profile = has_wgl_create_context_arb;
if (create_core_profile) {
std::pair<int, int> attempt_versions[] = {
« no previous file with comments | « gpu/command_buffer/tests/gl_request_extension_unittest.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698