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

Unified Diff: chrome/browser/about_flags.cc

Issue 266743003: Add flag to enable rendering of text using signed distance fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix; requested clean-up Created 6 years, 7 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 3f0db3e9de32373b5ae67c3a9f02ff6b6387da1f..22ce5ebeba2f6935fa7c43c9e7055083fb17a370 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -203,6 +203,14 @@ const Experiment::Choice kLCDTextChoices[] = {
{ IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED, switches::kDisableLCDText, ""}
};
+const Experiment::Choice kDistanceFieldTextChoices[] = {
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ { IDS_GENERIC_EXPERIMENT_CHOICE_ENABLED,
+ switches::kEnableDistanceFieldText, "" },
+ { IDS_GENERIC_EXPERIMENT_CHOICE_DISABLED,
+ switches::kDisableDistanceFieldText, "" }
+};
+
#ifndef USE_AURA
const Experiment::Choice kDelegatedRendererChoices[] = {
{ IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
@@ -1850,6 +1858,13 @@ const Experiment kExperiments[] = {
SINGLE_VALUE_TYPE(switches::kEnableAppInstallAlerts)
},
#endif
+ {
+ "distance-field-text",
+ IDS_FLAGS_DISTANCE_FIELD_TEXT_NAME,
+ IDS_FLAGS_DISTANCE_FIELD_TEXT_DESCRIPTION,
+ kOsAll,
+ MULTI_VALUE_TYPE(kDistanceFieldTextChoices)
+ },
};
const Experiment* experiments = kExperiments;

Powered by Google App Engine
This is Rietveld 408576698