blob: 093190838b02a415eebc3221a4eff2f27ab50ac6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// Copyright 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_LAYER_TREE_DEBUG_STATE_H_
#define CC_LAYER_TREE_DEBUG_STATE_H_
#include "cc/cc_export.h"
namespace cc {
class CC_EXPORT LayerTreeDebugState {
public:
LayerTreeDebugState();
~LayerTreeDebugState();
bool showFPSCounter;
bool showPlatformLayerTree;
bool showDebugBorders;
bool continuousPainting;
bool showPaintRects;
bool showPropertyChangedRects;
bool showSurfaceDamageRects;
bool showScreenSpaceRects;
bool showReplicaScreenSpaceRects;
bool showOccludingRects;
bool showNonOccludingRects;
int slowDownRasterScaleFactor;
void setRecordRenderingStats(bool);
bool recordRenderingStats() const;
bool traceAllRenderedFrames;
bool showHudInfo() const;
bool showHudRects() const;
static bool equal(const LayerTreeDebugState& a, const LayerTreeDebugState& b);
static LayerTreeDebugState unite(const LayerTreeDebugState& a, const LayerTreeDebugState& b);
private:
bool m_recordRenderingStats;
};
} // namespace cc
#endif // CC_LAYER_TREE_DEBUG_STATE_H_
|