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

Unified Diff: chrome/browser/about_flags.cc

Issue 189883009: Define a --force-gpu-rasterization flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 b8e1c9001c4301cc114c7d49e8cf942a4bcf3640..d05a62d8093c76842d565874f2fdbf4e1a640b2b 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -201,15 +201,15 @@ const Experiment::Choice kNaClDebugMaskChoices[] = {
const Experiment::Choice kImplSidePaintingChoices[] = {
{ IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
{ IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
- cc::switches::kEnableImplSidePainting, ""},
+ switches::kEnableImplSidePainting, ""},
{ IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
- cc::switches::kDisableImplSidePainting, ""}
+ switches::kDisableImplSidePainting, ""}
};
const Experiment::Choice kLCDTextChoices[] = {
{ IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
- { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, cc::switches::kEnableLCDText, ""},
- { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, cc::switches::kDisableLCDText, ""}
+ { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED, switches::kEnableLCDText, ""},
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, switches::kDisableLCDText, ""}
};
const Experiment::Choice kDelegatedRendererChoices[] = {
@@ -299,9 +299,9 @@ const Experiment::Choice kOverlayScrollbarChoices[] = {
const Experiment::Choice kMapImageChoices[] = {
{ IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
{ IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
- cc::switches::kEnableMapImage, ""},
+ switches::kEnableMapImage, ""},
{ IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
- cc::switches::kDisableMapImage, ""}
+ switches::kDisableMapImage, ""}
};
#if defined(OS_ANDROID)
@@ -326,6 +326,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,
+ switches::kEnableGpuRasterization, "" },
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
+ switches::kDisableGpuRasterization, "" },
+ { IDS_FLAGS_FORCE_GPU_RASTERIZATION,
+ switches::kForceGpuRasterization, "" },
+};
+
// 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
@@ -854,7 +864,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