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

Unified Diff: views/view.cc

Issue 8508009: Debugging code to print layer tree (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« ui/gfx/compositor/debug_utils.cc ('K') | « ui/gfx/compositor/layer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.cc
diff --git a/views/view.cc b/views/view.cc
index b3644dc80ad0ba25e1df649ea6dc8a4a64ce565c..32de6a72b8c52c42ee703329a75de9bc96cab628 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -1781,6 +1781,9 @@ void View::CreateLayer() {
layer_.reset(new ui::Layer(NULL));
layer_->set_delegate(this);
+#if !defined(NDEBUG)
+ layer_->set_name(GetClassName());
+#endif
UpdateParentLayers();
UpdateLayerVisibility();
« ui/gfx/compositor/debug_utils.cc ('K') | « ui/gfx/compositor/layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698