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

Unified Diff: chrome/browser/about_flags.cc

Issue 2795703002: ui: Add debug flag to show composited layer borders in ChromeOS UI. (Closed)
Patch Set: nits 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 | « cc/layers/surface_layer_impl.cc ('k') | 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 cbccc4bf3871f9b6404545ae33b244de31a8cf0a..c9c81522d5820b3dda96cfde5a352cc865285fbf 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)},
« no previous file with comments | « cc/layers/surface_layer_impl.cc ('k') | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698