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_LAYER_TREE_DEBUG_STATE_H_
6 #define CC_LAYER_TREE_DEBUG_STATE_H_
8 #include "cc/cc_export.h"
12 class CC_EXPORT LayerTreeDebugState
{
14 LayerTreeDebugState();
15 ~LayerTreeDebugState();
18 bool showPlatformLayerTree
;
19 bool showDebugBorders
;
20 bool continuousPainting
;
23 bool showPropertyChangedRects
;
24 bool showSurfaceDamageRects
;
25 bool showScreenSpaceRects
;
26 bool showReplicaScreenSpaceRects
;
27 bool showOccludingRects
;
28 bool showNonOccludingRects
;
30 bool showHudInfo() const;
31 bool showHudRects() const;
32 bool hudNeedsFont() const;
34 static bool equal(const LayerTreeDebugState
& a
, const LayerTreeDebugState
& b
);
35 static LayerTreeDebugState
unite(const LayerTreeDebugState
& a
, const LayerTreeDebugState
& b
);
40 #endif // CC_LAYER_TREE_DEBUG_STATE_H_