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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/debug/frame_viewer_instrumentation.cc ('k') | cc/debug/layer_tree_debug_state.cc » ('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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class CC_EXPORT LayerTreeDebugState { 13 class CC_EXPORT LayerTreeDebugState {
14 public: 14 public:
15 LayerTreeDebugState(); 15 LayerTreeDebugState();
16 ~LayerTreeDebugState(); 16 ~LayerTreeDebugState();
17 17
18 bool show_fps_counter; 18 bool show_fps_counter;
19 bool show_debug_borders; 19 bool show_debug_borders;
20 bool continuous_painting; 20 bool continuous_painting;
21 21
22 bool show_paint_rects; 22 bool show_paint_rects;
23 bool show_property_changed_rects; 23 bool show_property_changed_rects;
24 bool show_surface_damage_rects; 24 bool show_surface_damage_rects;
25 bool show_screen_space_rects; 25 bool show_screen_space_rects;
26 bool show_replica_screen_space_rects; 26 bool show_replica_screen_space_rects;
27 bool show_occluding_rects;
28 bool show_non_occluding_rects;
29 bool show_touch_event_handler_rects; 27 bool show_touch_event_handler_rects;
30 bool show_wheel_event_handler_rects; 28 bool show_wheel_event_handler_rects;
31 bool show_scroll_event_handler_rects; 29 bool show_scroll_event_handler_rects;
32 bool show_non_fast_scrollable_rects; 30 bool show_non_fast_scrollable_rects;
33 bool show_layer_animation_bounds_rects; 31 bool show_layer_animation_bounds_rects;
34 32
35 int slow_down_raster_scale_factor; 33 int slow_down_raster_scale_factor;
36 bool rasterize_only_visible_content; 34 bool rasterize_only_visible_content;
37 bool show_picture_borders; 35 bool show_picture_borders;
38 36
39 void SetRecordRenderingStats(bool enabled); 37 void SetRecordRenderingStats(bool enabled);
40 bool RecordRenderingStats() const; 38 bool RecordRenderingStats() const;
41 39
42 bool ShowHudInfo() const; 40 bool ShowHudInfo() const;
43 bool ShowHudRects() const; 41 bool ShowHudRects() const;
44 bool ShowMemoryStats() const; 42 bool ShowMemoryStats() const;
45 43
46 static bool Equal(const LayerTreeDebugState& a, const LayerTreeDebugState& b); 44 static bool Equal(const LayerTreeDebugState& a, const LayerTreeDebugState& b);
47 static LayerTreeDebugState Unite(const LayerTreeDebugState& a, 45 static LayerTreeDebugState Unite(const LayerTreeDebugState& a,
48 const LayerTreeDebugState& b); 46 const LayerTreeDebugState& b);
49 47
50 private: 48 private:
51 bool record_rendering_stats_; 49 bool record_rendering_stats_;
52 }; 50 };
53 51
54 } // namespace cc 52 } // namespace cc
55 53
56 #endif // CC_DEBUG_LAYER_TREE_DEBUG_STATE_H_ 54 #endif // CC_DEBUG_LAYER_TREE_DEBUG_STATE_H_
OLDNEW
« no previous file with comments | « cc/debug/frame_viewer_instrumentation.cc ('k') | cc/debug/layer_tree_debug_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698