Chromium Code Reviews| Index: cc/layer_tree_host.h |
| diff --git a/cc/layer_tree_host.h b/cc/layer_tree_host.h |
| index 7cb63f88ecb7f6d1a91679bea3aced28d32b9dff..887e69c634e16a7f599b5b0a16ebafc6a90c8cb3 100644 |
| --- a/cc/layer_tree_host.h |
| +++ b/cc/layer_tree_host.h |
| @@ -51,7 +51,6 @@ struct CCLayerTreeSettings { |
| ~CCLayerTreeSettings(); |
| bool acceleratePainting; |
| - bool showFPSCounter; |
| bool showPlatformLayerTree; |
| bool showPaintRects; |
| bool showPropertyChangedRects; |
| @@ -66,7 +65,7 @@ struct CCLayerTreeSettings { |
| IntSize maxUntiledLayerSize; |
| IntSize minimumOcclusionTrackingSize; |
| - bool showDebugInfo() const { return showPlatformLayerTree || showFPSCounter || showDebugRects(); } |
| + bool showDebugInfo() const { return showPlatformLayerTree || showDebugRects(); } |
| bool showDebugRects() const { return showPaintRects || showPropertyChangedRects || showSurfaceDamageRects || showScreenSpaceRects || showReplicaScreenSpaceRects || showOccludingRects; } |
| }; |
| @@ -203,6 +202,8 @@ public: |
| HeadsUpDisplayLayerChromium* hudLayer() const { return m_hudLayer.get(); } |
| + void setShowFPSCounter(bool show); |
| + |
| protected: |
| CCLayerTreeHost(CCLayerTreeHostClient*, const CCLayerTreeSettings&); |
| bool initialize(); |
| @@ -256,6 +257,8 @@ private: |
| bool m_visible; |
| + bool m_showFPSCounter; |
|
nduca
2012/10/20 19:49:41
why are you storing this?
|
| + |
| typedef base::hash_map<WebKit::WebGraphicsContext3D*, scoped_refptr<RateLimiter> > RateLimiterMap; |
| RateLimiterMap m_rateLimiters; |