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

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: added check for accelerated compositing, removed 'showFPSCounter' from settings, command-line flag … 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 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;
« no previous file with comments | « cc/heads_up_display_layer_impl.cc ('k') | cc/layer_tree_host.cc » ('j') | cc/layer_tree_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698