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

Unified Diff: cc/single_thread_proxy.cc

Issue 11189037: toggle FPS counter in compositor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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/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();

Powered by Google App Engine
This is Rietveld 408576698