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

Side by Side Diff: ui/compositor/debug_utils.cc

Issue 2168733002: Splits debug_commands into aura and non-aura parts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first. 5 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first.
6 6
7 #include "ui/compositor/debug_utils.h" 7 #include "ui/compositor/debug_utils.h"
8 8
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 *out << '\n'; 102 *out << '\n';
103 103
104 for (size_t i = 0, count = layer->children().size(); i < count; ++i) { 104 for (size_t i = 0, count = layer->children().size(); i < count; ++i) {
105 PrintLayerHierarchyImp( 105 PrintLayerHierarchyImp(
106 layer->children()[i], indent + 3, mouse_location, out); 106 layer->children()[i], indent + 3, mouse_location, out);
107 } 107 }
108 } 108 }
109 109
110 } // namespace 110 } // namespace
111 111
112 void PrintLayerHierarchy(const Layer* layer, gfx::Point mouse_location) { 112 void PrintLayerHierarchy(const Layer* layer, const gfx::Point& mouse_location) {
113 std::ostringstream out; 113 std::ostringstream out;
114 out << "Layer hierarchy:\n"; 114 out << "Layer hierarchy:\n";
115 PrintLayerHierarchyImp(layer, 0, mouse_location, &out); 115 PrintLayerHierarchyImp(layer, 0, mouse_location, &out);
116 // Error so logs can be collected from end-users. 116 // Error so logs can be collected from end-users.
117 LOG(ERROR) << out.str(); 117 LOG(ERROR) << out.str();
118 } 118 }
119 119
120 } // namespace ui 120 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698