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

Side by Side Diff: cc/layer_tree_debug_state.cc

Issue 12212099: cc: remove FontAtlas (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 182043 Created 7 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/layer_tree_debug_state.h ('k') | cc/layer_tree_host.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 #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
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
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
OLDNEW
« no previous file with comments | « cc/layer_tree_debug_state.h ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698