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

Unified Diff: gpu/command_buffer/service/feature_info.cc

Issue 2460943002: Lower ES3 capable requirement to GL 3.3 with extensions. (Closed)
Patch Set: address piman comment 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 | « content/test/gpu/page_sets/gpu_process_tests.py ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index d30abaa72f216f6d547b875e8f998619eaad3d3a..d2407028b68945c99e4b2babc96f9eac5d15fc16 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -200,7 +200,8 @@ void FeatureInfo::InitializeBasicState(const base::CommandLine* command_line) {
(command_line->GetSwitchValueASCII(switches::kUseGL) == "swiftshader");
enable_unsafe_es3_apis_switch_ =
- command_line->HasSwitch(switches::kEnableUnsafeES3APIs);
+ command_line->HasSwitch(switches::kEnableUnsafeES3APIs) &&
+ !command_line->HasSwitch(switches::kDisableES3APIs);
// The shader translator is needed to translate from WebGL-conformant GLES SL
// to normal GLES SL, enforce WebGL conformance, translate from GLES SL 1.0 to
« no previous file with comments | « content/test/gpu/page_sets/gpu_process_tests.py ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698