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