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

Unified Diff: cc/layer_tree_host.h

Issue 11189037: toggle FPS counter in compositor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: restored showFPSCounter in WeblayerTreeView::Settings and removed fontAtlas DCHECKS for flags set i… Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: cc/layer_tree_host.h
diff --git a/cc/layer_tree_host.h b/cc/layer_tree_host.h
index bdf5759d58bfdd1e2ef95c6f090a2c4b037e0406..5cc31dd25714aa6b27da1cdb25870c5b512a4ae6 100644
--- a/cc/layer_tree_host.h
+++ b/cc/layer_tree_host.h
@@ -54,7 +54,6 @@ struct LayerTreeSettings {
~LayerTreeSettings();
bool acceleratePainting;
- bool showFPSCounter;
bool showPlatformLayerTree;
bool showPaintRects;
bool showPropertyChangedRects;
@@ -69,7 +68,7 @@ struct LayerTreeSettings {
IntSize maxUntiledLayerSize;
IntSize minimumOcclusionTrackingSize;
- bool showDebugInfo() const { return showPlatformLayerTree || showFPSCounter || showDebugRects(); }
+ bool showDebugInfo() const { return showPlatformLayerTree || showDebugRects(); }
egraether 2012/10/30 20:14:04 I reintroduced showDebugInfo as the --ui-show-laye
bool showDebugRects() const { return showPaintRects || showPropertyChangedRects || showSurfaceDamageRects || showScreenSpaceRects || showReplicaScreenSpaceRects || showOccludingRects; }
};
@@ -206,6 +205,7 @@ public:
void setDeviceScaleFactor(float);
float deviceScaleFactor() const { return m_deviceScaleFactor; }
+ void setShowFPSCounter(bool show);
void setFontAtlas(scoped_ptr<FontAtlas>);
HeadsUpDisplayLayer* hudLayer() const { return m_hudLayer.get(); }
@@ -235,6 +235,8 @@ private:
bool animateLayersRecursive(Layer* current, base::TimeTicks time);
void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, base::Time wallClockTime);
+ void createHUDLayerIfNeeded();
+
bool m_animating;
bool m_needsAnimateLayers;
@@ -253,7 +255,6 @@ private:
scoped_refptr<Layer> m_rootLayer;
scoped_refptr<HeadsUpDisplayLayer> m_hudLayer;
- scoped_ptr<FontAtlas> m_fontAtlas;
scoped_ptr<PrioritizedTextureManager> m_contentsTextureManager;
scoped_ptr<PrioritizedTexture> m_surfaceMemoryPlaceholder;

Powered by Google App Engine
This is Rietveld 408576698