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

Unified Diff: chrome/browser/about_flags.cc

Issue 447863003: Using experiments to activate the DisplayList2DCanvas optimization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase master + Fixing AboutFlagsHistogramTest.CheckHistograms test Created 6 years, 4 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 | « no previous file | chrome/browser/chrome_browser_field_trials.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 dd4c1f9c9600da76e5626866c1da98918963d572..1bb9950e42c421eb0ee28d223c045e8d09ce5f61 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -139,6 +139,14 @@ std::set<CommandLine::StringType> ExtractFlagsFromCommandLine(
return flags;
}
+const Experiment::Choice kEnableDisplayList2DcanvasChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
+ switches::kEnableDisplayList2dCanvas, ""},
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
+ switches::kDisableDisplayList2dCanvas, ""},
+};
+
const Experiment::Choice kEnableCompositingForTransitionChoices[] = {
{ IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
{ IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
@@ -576,7 +584,7 @@ const Experiment kExperiments[] = {
IDS_FLAGS_ENABLE_DISPLAY_LIST_2D_CANVAS_NAME,
IDS_FLAGS_ENABLE_DISPLAY_LIST_2D_CANVAS_DESCRIPTION,
kOsAll,
- SINGLE_VALUE_TYPE(switches::kEnableDisplayList2dCanvas)
+ MULTI_VALUE_TYPE(kEnableDisplayList2DcanvasChoices)
},
{
"composited-layer-borders",
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_field_trials.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698