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

Unified Diff: chrome/browser/about_flags.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 | « chrome/app/generated_resources.grd ('k') | content/browser/gpu/compositor_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index f82c43913c8f961e1c643904b8954a71038ba0d8..730688629c47cf648ee982e38b8992494ea84fdf 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -330,6 +330,12 @@ const FeatureEntry::Choice kEnableGpuRasterizationChoices[] = {
switches::kForceGpuRasterization, "" },
};
+const FeatureEntry::Choice kEnableWebGL2Choices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, switches::kEnableES3APIs, "" },
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, switches::kDisableES3APIs, "" },
+};
+
#if defined(OS_CHROMEOS)
const FeatureEntry::Choice kMemoryPressureThresholdChoices[] = {
{ IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
@@ -1788,9 +1794,9 @@ const FeatureEntry kFeatureEntries[] = {
IDS_FLAGS_AUTOMATIC_TAB_DISCARDING_DESCRIPTION, kOsWin | kOsMac,
FEATURE_VALUE_TYPE(features::kAutomaticTabDiscarding)},
#endif // OS_WIN || OS_MACOSX
- {"enable-unsafe-es3-apis", IDS_FLAGS_WEBGL2_NAME,
+ {"enable-es3-apis", IDS_FLAGS_WEBGL2_NAME,
IDS_FLAGS_WEBGL2_DESCRIPTION, kOsAll,
- SINGLE_VALUE_TYPE(switches::kEnableUnsafeES3APIs)},
+ MULTI_VALUE_TYPE(kEnableWebGL2Choices)},
{"enable-webfonts-intervention-v2",
IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_NAME,
IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_DESCRIPTION, kOsAll,
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/gpu/compositor_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698