OLD | NEW |
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 <cmath> | 9 #include <cmath> |
10 #include <iomanip> | 10 #include <iomanip> |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 } // namespace | 97 } // namespace |
98 | 98 |
99 void PrintLayerHierarchy(const Layer* layer, gfx::Point mouse_location) { | 99 void PrintLayerHierarchy(const Layer* layer, gfx::Point mouse_location) { |
100 std::wostringstream out; | 100 std::wostringstream out; |
101 out << L"Layer hierarchy:\n"; | 101 out << L"Layer hierarchy:\n"; |
102 PrintLayerHierarchyImp(layer, 0, mouse_location, &out); | 102 PrintLayerHierarchyImp(layer, 0, mouse_location, &out); |
103 // Error so logs can be collected from end-users. | 103 // Error so logs can be collected from end-users. |
104 LOG(ERROR) << out.str(); | 104 LOG(ERROR) << out.str(); |
105 } | 105 } |
106 | 106 |
107 } // namespace ui | 107 } // namespace ui |
OLD | NEW |