Chromium Code Reviews| 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; |