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

Unified Diff: cc/layer_tree_host_impl.cc

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_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index 7c23e0ac64e4711192bc3c62ad80789ac3df3a23..9f5ce9ec67d5fc9f1f3da4945a7b5469dc689b40 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -232,6 +232,7 @@ CCLayerTreeHostImpl::CCLayerTreeHostImpl(const CCLayerTreeSettings& settings, CC
, m_debugRectHistory(CCDebugRectHistory::create())
, m_numImplThreadScrolls(0)
, m_numMainThreadScrolls(0)
+ , m_showFPSCounter(false)
{
ASSERT(CCProxy::isImplThread());
didVisibilityChange(this, m_visible);
@@ -1459,4 +1460,15 @@ void CCLayerTreeHostImpl::animateScrollbarsRecursive(CCLayerImpl* layer, double
animateScrollbarsRecursive(layer->children()[i], monotonicTime);
}
+void CCLayerTreeHostImpl::setShowFPSCounter(bool show)
nduca 2012/10/20 19:49:41 Can this be state on the hud layer? e.g this funct
+{
+ ASSERT(CCProxy::isImplThread());
+ m_showFPSCounter = show;
+}
+
+bool CCLayerTreeHostImpl::showFPSCounter() const
+{
+ return m_showFPSCounter;
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698