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

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: 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/single_thread_proxy.cc
diff --git a/cc/single_thread_proxy.cc b/cc/single_thread_proxy.cc
index e9ac8e79f92d44d744be6fe5bf9e20e12927982a..cf8d3ae71067ca2ac952093e42af6661ec311124 100644
--- a/cc/single_thread_proxy.cc
+++ b/cc/single_thread_proxy.cc
@@ -305,6 +305,14 @@ void CCSingleThreadProxy::forceSerializeOnSwapBuffers()
}
}
+void CCSingleThreadProxy::setShowFPSCounter(bool show)
+{
+ TRACE_EVENT0("cc", "CCSingleThreadProxy::setShowFPSCounter");
+ ASSERT(CCProxy::isMainThread());
+ DebugScopedSetImplThread impl;
+ m_layerTreeHostImpl->setShowFPSCounter(show);
+}
+
void CCSingleThreadProxy::onSwapBuffersCompleteOnImplThread()
{
ASSERT_NOT_REACHED();

Powered by Google App Engine
This is Rietveld 408576698