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

Unified Diff: chrome/browser/about_flags.cc

Issue 184573002: Use MSAA in GPU rasterization if Skia suggests it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: the hunk, actually 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
« cc/resources/resource_provider.cc ('K') | « chrome/app/generated_resources.grd ('k') | no next file » | 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 96b086fdd8059330639a436b2c12aaf98965c0a8..8562e61b6603bb23a180c6cbde4cfb5258e4678e 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -372,6 +372,19 @@ const Experiment::Choice kNotificationCenterTrayBehaviorChoices[] = {
message_center::switches::kNotificationCenterTrayBehavior, "unread" }
};
+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_ENABLE_GPU_RASTERIZATION_GPU,
+ cc::switches::kEnableGPURasterization, "gpu"},
+ {IDS_FLAGS_ENABLE_GPU_RASTERIZATION_MSAA4,
+ cc::switches::kEnableGPURasterization, "msaa4"},
+ {IDS_FLAGS_ENABLE_GPU_RASTERIZATION_MSAA16,
+ cc::switches::kEnableGPURasterization, "msaa16"}};
+
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the experiment is the internal name. If you'd like to
@@ -887,7 +900,7 @@ const Experiment kExperiments[] = {
IDS_FLAGS_ENABLE_GPU_RASTERIZATION_NAME,
IDS_FLAGS_ENABLE_GPU_RASTERIZATION_DESCRIPTION,
kOsAll,
- SINGLE_VALUE_TYPE(cc::switches::kEnableGPURasterization)
+ MULTI_VALUE_TYPE(kEnableGPURasterizationChoices)
},
{
"enable-experimental-web-platform-features",
« cc/resources/resource_provider.cc ('K') | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698