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..75b16ec36edb0a2cde40ff6823e56d43246a5730 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,14 @@ void CCLayerTreeHostImpl::animateScrollbarsRecursive(CCLayerImpl* layer, double |
animateScrollbarsRecursive(layer->children()[i], monotonicTime); |
} |
+void CCLayerTreeHostImpl::setShowFPSCounter(bool show) |
+{ |
+ m_showFPSCounter = show; |
+} |
+ |
+bool CCLayerTreeHostImpl::showFPSCounter() const |
+{ |
+ return m_showFPSCounter; |
+} |
+ |
} // namespace cc |