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

Unified Diff: chrome/browser/about_flags.cc

Issue 181063022: cc: Trigger GPU rasterization based on a per-layer hint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index ad0e6cd7c64506f591b6d7a8e5b82aa488f3a795..ff5b7d03bea9d5a1f81e075b73eb029c71962eee 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -324,6 +324,16 @@ const Experiment::Choice kNumRasterThreadsChoices[] = {
{ IDS_FLAGS_NUM_RASTER_THREADS_FOUR, switches::kNumRasterThreads, "4" }
};
+const Experiment::Choice kEnableGPURasterizationChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
+ cc::switches::kEnableGPURasterization, ""},
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
+ cc::switches::kDisableGPURasterization, ""},
+ { IDS_FLAGS_GPU_RASTERIZATION_FOR_ALL_LAYERS,
+ cc::switches::kEnableUniversalGPURasterization, ""}
+};
+
// We're using independent flags here (as opposed to a common flag with
// different values) to be able to enable/disable the entire experience
// associated with this feature server-side from the FieldTrial (the complete
@@ -880,7 +890,7 @@ const Experiment kExperiments[] = {
IDS_FLAGS_ENABLE_GPU_RASTERIZATION_NAME,
IDS_FLAGS_ENABLE_GPU_RASTERIZATION_DESCRIPTION,
kOsAndroid,
- SINGLE_VALUE_TYPE(cc::switches::kEnableGPURasterization)
+ MULTI_VALUE_TYPE(kEnableGPURasterizationChoices)
},
{
"enable-experimental-web-platform-features",

Powered by Google App Engine
This is Rietveld 408576698