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

Unified Diff: chrome/browser/about_flags.cc

Issue 2795703002: ui: Add debug flag to show composited layer borders in ChromeOS UI. (Closed)
Patch Set: 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
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index cbccc4bf3871f9b6404545ae33b244de31a8cf0a..1bf550c477e477a6b234a41084207b8d52ea285e 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -443,6 +443,20 @@ const FeatureEntry::Choice kDataSaverPromptChoices[] = {
chromeos::switches::kEnableDataSaverPrompt,
chromeos::switches::kDataSaverPromptDemoMode},
};
+
+const FeatureEntry::Choice kUiShowCompositedLayerBordersChoices[] = {
+ {flags_ui::kGenericExperimentChoiceDefault, "", ""},
+ {flag_descriptions::kUiShowCompositedLayerBordersRenderpass,
+ cc::switches::kUIShowCompositedLayerBorders,
+ cc::switches::kCompositedRenderpassBorders},
+ {flag_descriptions::kUiShowCompositedLayerBordersSurface,
+ cc::switches::kUIShowCompositedLayerBorders,
+ cc::switches::kCompositedSurfaceBorders},
+ {flag_descriptions::kUiShowCompositedLayerBordersLayer,
+ cc::switches::kUIShowCompositedLayerBorders,
+ cc::switches::kCompositedLayerBorders},
+ {flag_descriptions::kUiShowCompositedLayerBordersAll,
+ cc::switches::kUIShowCompositedLayerBorders, ""}};
#endif // OS_CHROMEOS
const FeatureEntry::Choice kV8CacheOptionsChoices[] = {
@@ -1255,6 +1269,10 @@ const FeatureEntry kFeatureEntries[] = {
{"ui-slow-animations", flag_descriptions::kUiSlowAnimationsName,
flag_descriptions::kUiSlowAnimationsDescription, kOsCrOS,
SINGLE_VALUE_TYPE(switches::kUISlowAnimations)},
+ {"ui-show-composited-layer-borders",
+ flag_descriptions::kUiShowCompositedLayerBordersName,
+ flag_descriptions::kUiShowCompositedLayerBordersDescription, kOsCrOS,
+ MULTI_VALUE_TYPE(kUiShowCompositedLayerBordersChoices)},
{"disable-cloud-import", flag_descriptions::kCloudImport,
flag_descriptions::kCloudImportDescription, kOsCrOS,
SINGLE_DISABLE_VALUE_TYPE(chromeos::switches::kDisableCloudImport)},

Powered by Google App Engine
This is Rietveld 408576698