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

Side by Side Diff: cc/debug/layer_tree_debug_state.h

Issue 2795703002: ui: Add debug flag to show composited layer borders in ChromeOS UI. (Closed)
Patch Set: nits Created 3 years, 8 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
« no previous file with comments | « cc/base/switches.cc ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « cc/base/switches.cc ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698