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

Unified Diff: ui/compositor/compositor.cc

Issue 11410098: ui: Enable debug borders for the UI compositor through layer tree settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | ui/compositor/layer.h » ('j') | ui/compositor/layer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 4a2f927cfd08fd9d3c4a01ee9458308b69b08802..17d4bc7c1c5592617ab7d7cce9959a4dad472366 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -305,6 +305,8 @@ Compositor::Compositor(CompositorDelegate* delegate,
command_line->HasSwitch(switches::kUIShowLayerTree);
settings.refreshRate =
test_compositor_enabled ? kTestRefreshRate : kDefaultRefreshRate;
+ settings.showDebugBorders =
+ command_line->HasSwitch(switches::kUIShowLayerBorders);
root_web_layer_->setAnchorPoint(WebKit::WebFloatPoint(0.f, 0.f));
host_.reset(compositor_support->createLayerTreeView(this, *root_web_layer_,
« no previous file with comments | « no previous file | ui/compositor/layer.h » ('j') | ui/compositor/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698