OLD | NEW |
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 #include "cc/layer_tree_debug_state.h" | 5 #include "cc/layer_tree_debug_state.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace cc { | 9 namespace cc { |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 } | 37 } |
38 | 38 |
39 bool LayerTreeDebugState::showHudInfo() const { | 39 bool LayerTreeDebugState::showHudInfo() const { |
40 return showFPSCounter || showPlatformLayerTree || continuousPainting || show
HudRects(); | 40 return showFPSCounter || showPlatformLayerTree || continuousPainting || show
HudRects(); |
41 } | 41 } |
42 | 42 |
43 bool LayerTreeDebugState::showHudRects() const { | 43 bool LayerTreeDebugState::showHudRects() const { |
44 return showPaintRects || showPropertyChangedRects || showSurfaceDamageRects
|| showScreenSpaceRects || showReplicaScreenSpaceRects || showOccludingRects ||
showNonOccludingRects; | 44 return showPaintRects || showPropertyChangedRects || showSurfaceDamageRects
|| showScreenSpaceRects || showReplicaScreenSpaceRects || showOccludingRects ||
showNonOccludingRects; |
45 } | 45 } |
46 | 46 |
47 bool LayerTreeDebugState::hudNeedsFont() const { | |
48 return showFPSCounter || showPlatformLayerTree || continuousPainting; | |
49 } | |
50 | |
51 bool LayerTreeDebugState::equal(const LayerTreeDebugState& a, const LayerTreeDeb
ugState& b) { | 47 bool LayerTreeDebugState::equal(const LayerTreeDebugState& a, const LayerTreeDeb
ugState& b) { |
52 return (a.showFPSCounter == b.showFPSCounter && | 48 return (a.showFPSCounter == b.showFPSCounter && |
53 a.showPlatformLayerTree == b.showPlatformLayerTree && | 49 a.showPlatformLayerTree == b.showPlatformLayerTree && |
54 a.showDebugBorders == b.showDebugBorders && | 50 a.showDebugBorders == b.showDebugBorders && |
55 a.continuousPainting == b.continuousPainting && | 51 a.continuousPainting == b.continuousPainting && |
56 a.showPaintRects == b.showPaintRects && | 52 a.showPaintRects == b.showPaintRects && |
57 a.showPropertyChangedRects == b.showPropertyChangedRects && | 53 a.showPropertyChangedRects == b.showPropertyChangedRects && |
58 a.showSurfaceDamageRects == b.showSurfaceDamageRects && | 54 a.showSurfaceDamageRects == b.showSurfaceDamageRects && |
59 a.showScreenSpaceRects == b.showScreenSpaceRects && | 55 a.showScreenSpaceRects == b.showScreenSpaceRects && |
60 a.showReplicaScreenSpaceRects == b.showReplicaScreenSpaceRects && | 56 a.showReplicaScreenSpaceRects == b.showReplicaScreenSpaceRects && |
(...skipping 23 matching lines...) Expand all Loading... |
84 if (b.slowDownRasterScaleFactor) | 80 if (b.slowDownRasterScaleFactor) |
85 r.slowDownRasterScaleFactor = b.slowDownRasterScaleFactor; | 81 r.slowDownRasterScaleFactor = b.slowDownRasterScaleFactor; |
86 | 82 |
87 r.m_recordRenderingStats |= b.m_recordRenderingStats; | 83 r.m_recordRenderingStats |= b.m_recordRenderingStats; |
88 r.traceAllRenderedFrames |= b.traceAllRenderedFrames; | 84 r.traceAllRenderedFrames |= b.traceAllRenderedFrames; |
89 | 85 |
90 return r; | 86 return r; |
91 } | 87 } |
92 | 88 |
93 } // namespace cc | 89 } // namespace cc |
OLD | NEW |