Chromium Code Reviews| Index: cc/single_thread_proxy.cc |
| diff --git a/cc/single_thread_proxy.cc b/cc/single_thread_proxy.cc |
| index e9ac8e79f92d44d744be6fe5bf9e20e12927982a..1678b95c8a296e9a8687e48e340a1b9c14a52ae9 100644 |
| --- a/cc/single_thread_proxy.cc |
| +++ b/cc/single_thread_proxy.cc |
| @@ -305,6 +305,17 @@ void CCSingleThreadProxy::forceSerializeOnSwapBuffers() |
| } |
| } |
| +void CCSingleThreadProxy::setShowFPSCounter(bool show) |
| +{ |
| + ASSERT(CCProxy::isMainThread()); |
| + { |
|
brianderson
2012/10/18 00:13:21
I don't think this anonymous scope is necessary.
egraether
2012/10/18 15:56:30
I saw that other similar code parts also don't use
|
| + DebugScopedSetImplThread impl; |
| + ASSERT(CCProxy::isImplThread()); |
|
brianderson
2012/10/18 00:13:21
You should move this ASSERT into CCLayerTreeHostIm
egraether
2012/10/18 15:56:30
You are right.
On 2012/10/18 00:13:21, Brian Ande
|
| + if (m_rendererInitialized) |
| + m_layerTreeHostImpl->setShowFPSCounter(show); |
| + } |
| +} |
| + |
| void CCSingleThreadProxy::onSwapBuffersCompleteOnImplThread() |
| { |
| ASSERT_NOT_REACHED(); |