| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 CC_DEBUG_LAYER_TREE_DEBUG_STATE_H_ | 5 #ifndef CC_DEBUG_LAYER_TREE_DEBUG_STATE_H_ |
| 6 #define CC_DEBUG_LAYER_TREE_DEBUG_STATE_H_ | 6 #define CC_DEBUG_LAYER_TREE_DEBUG_STATE_H_ |
| 7 | 7 |
| 8 #include <bitset> |
| 9 |
| 8 #include "cc/debug/debug_export.h" | 10 #include "cc/debug/debug_export.h" |
| 9 | 11 |
| 10 namespace cc { | 12 namespace cc { |
| 11 | 13 |
| 12 namespace proto { | 14 namespace proto { |
| 13 class LayerTreeDebugState; | 15 class LayerTreeDebugState; |
| 14 } // namespace proto | 16 } // namespace proto |
| 15 | 17 |
| 18 enum DebugBorderType { |
| 19 RENDERPASS = 0, |
| 20 SURFACE, |
| 21 LAYER, |
| 22 LAST_DEBUG_BORDER_TYPE = LAYER |
| 23 }; |
| 24 using DebugBorderTypes = std::bitset<LAST_DEBUG_BORDER_TYPE + 1>; |
| 25 |
| 16 class CC_DEBUG_EXPORT LayerTreeDebugState { | 26 class CC_DEBUG_EXPORT LayerTreeDebugState { |
| 17 public: | 27 public: |
| 18 LayerTreeDebugState(); | 28 LayerTreeDebugState(); |
| 19 LayerTreeDebugState(const LayerTreeDebugState& other); | 29 LayerTreeDebugState(const LayerTreeDebugState& other); |
| 20 ~LayerTreeDebugState(); | 30 ~LayerTreeDebugState(); |
| 21 | 31 |
| 22 bool show_fps_counter; | 32 bool show_fps_counter; |
| 23 bool show_debug_borders; | 33 DebugBorderTypes show_debug_borders; |
| 24 | 34 |
| 25 bool show_paint_rects; | 35 bool show_paint_rects; |
| 26 bool show_property_changed_rects; | 36 bool show_property_changed_rects; |
| 27 bool show_surface_damage_rects; | 37 bool show_surface_damage_rects; |
| 28 bool show_screen_space_rects; | 38 bool show_screen_space_rects; |
| 29 bool show_touch_event_handler_rects; | 39 bool show_touch_event_handler_rects; |
| 30 bool show_wheel_event_handler_rects; | 40 bool show_wheel_event_handler_rects; |
| 31 bool show_scroll_event_handler_rects; | 41 bool show_scroll_event_handler_rects; |
| 32 bool show_non_fast_scrollable_rects; | 42 bool show_non_fast_scrollable_rects; |
| 33 bool show_layer_animation_bounds_rects; | 43 bool show_layer_animation_bounds_rects; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 47 static LayerTreeDebugState Unite(const LayerTreeDebugState& a, | 57 static LayerTreeDebugState Unite(const LayerTreeDebugState& a, |
| 48 const LayerTreeDebugState& b); | 58 const LayerTreeDebugState& b); |
| 49 | 59 |
| 50 private: | 60 private: |
| 51 bool record_rendering_stats_; | 61 bool record_rendering_stats_; |
| 52 }; | 62 }; |
| 53 | 63 |
| 54 } // namespace cc | 64 } // namespace cc |
| 55 | 65 |
| 56 #endif // CC_DEBUG_LAYER_TREE_DEBUG_STATE_H_ | 66 #endif // CC_DEBUG_LAYER_TREE_DEBUG_STATE_H_ |
| OLD | NEW |