| 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 #ifndef NDEBUG | 5 #ifndef NDEBUG |
| 6 | 6 |
| 7 #include "ui/gfx/compositor/debug_utils.h" | 7 #include "ui/gfx/compositor/debug_utils.h" |
| 8 | 8 |
| 9 #include <iomanip> | 9 #include <iomanip> |
| 10 #include <iostream> | 10 #include <iostream> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 buf << L' '; | 41 buf << L' '; |
| 42 | 42 |
| 43 buf << UTF8ToWide(layer->name()) << L' ' << layer; | 43 buf << UTF8ToWide(layer->name()) << L' ' << layer; |
| 44 | 44 |
| 45 switch (layer->type()) { | 45 switch (layer->type()) { |
| 46 case Layer::LAYER_NOT_DRAWN: | 46 case Layer::LAYER_NOT_DRAWN: |
| 47 buf << L" not_drawn"; | 47 buf << L" not_drawn"; |
| 48 break; | 48 break; |
| 49 case Layer::LAYER_TEXTURED: | 49 case Layer::LAYER_TEXTURED: |
| 50 buf << L" textured"; | 50 buf << L" textured"; |
| 51 if (layer->fills_bounds_opaquely()) |
| 52 buf << L" opaque"; |
| 51 break; | 53 break; |
| 52 case Layer::LAYER_SOLID_COLOR: | 54 case Layer::LAYER_SOLID_COLOR: |
| 53 buf << L" solid"; | 55 buf << L" solid"; |
| 54 break; | 56 break; |
| 55 } | 57 } |
| 56 | 58 |
| 57 buf << L'\n' << UTF8ToWide(content_indent_str); | 59 buf << L'\n' << UTF8ToWide(content_indent_str); |
| 58 buf << L"bounds: " << layer->bounds().x() << L',' << layer->bounds().y(); | 60 buf << L"bounds: " << layer->bounds().x() << L',' << layer->bounds().y(); |
| 59 buf << L' ' << layer->bounds().width() << L'x' << layer->bounds().height(); | 61 buf << L' ' << layer->bounds().width() << L'x' << layer->bounds().height(); |
| 60 | 62 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 100 |
| 99 } // namespace | 101 } // namespace |
| 100 | 102 |
| 101 void PrintLayerHierarchy(const Layer* layer, gfx::Point mouse_location) { | 103 void PrintLayerHierarchy(const Layer* layer, gfx::Point mouse_location) { |
| 102 PrintLayerHierarchyImp(layer, 0, mouse_location); | 104 PrintLayerHierarchyImp(layer, 0, mouse_location); |
| 103 } | 105 } |
| 104 | 106 |
| 105 } // namespace ui | 107 } // namespace ui |
| 106 | 108 |
| 107 #endif // NDEBUG | 109 #endif // NDEBUG |
| OLD | NEW |