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

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: Rebased 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 f11a2c4e7db93665bbb9207f5aaa53e620109901..7438fa46922a7f8248f6d9d3879ea95f9d657dc9 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 kRasterizationSiteChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_FLAGS_CPU_RASTERIZATION,
+ cc::switches::kRasterizationSite, "cpu" },
+ { IDS_FLAGS_HYBRID_RASTERIZATION,
+ cc::switches::kRasterizationSite, "hybrid" },
+ { IDS_FLAGS_GPU_RASTERIZATION,
+ cc::switches::kRasterizationSite, "gpu" },
+};
+
// 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
@@ -876,11 +886,11 @@ const Experiment kExperiments[] = {
SINGLE_VALUE_TYPE(switches::kDisableSoftwareRasterizer)
},
{
- "enable-gpu-rasterization",
- IDS_FLAGS_ENABLE_GPU_RASTERIZATION_NAME,
- IDS_FLAGS_ENABLE_GPU_RASTERIZATION_DESCRIPTION,
+ "rasterization-site",
+ IDS_FLAGS_RASTERIZATION_SITE_NAME,
+ IDS_FLAGS_RASTERIZATION_SITE_DESCRIPTION,
kOsAndroid,
- SINGLE_VALUE_TYPE(cc::switches::kEnableGPURasterization)
+ MULTI_VALUE_TYPE(kRasterizationSiteChoices)
},
{
"enable-experimental-web-platform-features",

Powered by Google App Engine
This is Rietveld 408576698