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

Unified Diff: chrome/browser/about_flags.cc

Issue 2807423002: Add color correct rendering to about:flags (Closed)
Patch Set: Fix histograms.xml Created 3 years, 8 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/flag_descriptions.h » ('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 844be218e43c59e6d711b8cd7126fb9a7eb9b8e2..ce02caa95f9fcef3e9d38c6f454663f765d91289 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -347,6 +347,13 @@ const FeatureEntry::Choice kEnableGpuRasterizationChoices[] = {
switches::kForceGpuRasterization, ""},
};
+const FeatureEntry::Choice kColorCorrectRenderingChoices[] = {
+ {flags_ui::kGenericExperimentChoiceDefault, "", ""},
+ {flags_ui::kGenericExperimentChoiceEnabled,
+ cc::switches::kEnableColorCorrectRendering, ""},
+ {flags_ui::kGenericExperimentChoiceDisabled, "", ""},
+};
+
const FeatureEntry::Choice kEnableWebGL2Choices[] = {
{flags_ui::kGenericExperimentChoiceDefault, "", ""},
{flags_ui::kGenericExperimentChoiceEnabled, switches::kEnableES3APIs, ""},
@@ -2688,6 +2695,11 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(features::kCopylessPaste)},
#endif
+ {"enable-color-correct-rendering",
+ flag_descriptions::kColorCorrectRenderingName,
+ flag_descriptions::kColorCorrectRenderingDescription, kOsAll,
+ MULTI_VALUE_TYPE(kColorCorrectRenderingChoices)},
+
// NOTE: Adding new command-line switches requires adding corresponding
// entries to enum "LoginCustomFlags" in histograms.xml. See note in
// histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
« no previous file with comments | « no previous file | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698