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
3 // found in the LICENSE file.
5 #ifndef CC_DEBUG_LAYER_TREE_DEBUG_STATE_H_
6 #define CC_DEBUG_LAYER_TREE_DEBUG_STATE_H_
8 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h"
13 class CC_EXPORT LayerTreeDebugState
{
15 LayerTreeDebugState();
16 ~LayerTreeDebugState();
18 bool show_fps_counter
;
19 bool show_platform_layer_tree
;
20 bool show_debug_borders
;
21 bool continuous_painting
;
23 bool show_paint_rects
;
24 bool show_property_changed_rects
;
25 bool show_surface_damage_rects
;
26 bool show_screen_space_rects
;
27 bool show_replica_screen_space_rects
;
28 bool show_occluding_rects
;
29 bool show_non_occluding_rects
;
31 int slow_down_raster_scale_factor
;
32 bool show_picture_borders
;
34 void SetRecordRenderingStats(bool enabled
);
35 bool RecordRenderingStats() const;
37 bool trace_all_rendered_frames
;
39 bool ShowHudInfo() const;
40 bool ShowHudRects() const;
41 bool ShowMemoryStats() const;
43 static bool Equal(const LayerTreeDebugState
& a
, const LayerTreeDebugState
& b
);
44 static LayerTreeDebugState
Unite(const LayerTreeDebugState
& a
,
45 const LayerTreeDebugState
& b
);
48 bool record_rendering_stats_
;
53 #endif // CC_DEBUG_LAYER_TREE_DEBUG_STATE_H_