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

Unified Diff: cc/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/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index 2e1e74d3bd4e3353c6b7d3007b7b60938afb1e10..a4818f8fdb3969b404cf7d4203950542302dc9ff 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -434,6 +434,18 @@ void CCThreadProxy::forceSerializeOnSwapBuffersOnImplThread(CCCompletionEvent* c
completion->signal();
}
+void CCThreadProxy::setShowFPSCounter(bool show)
+{
+ ASSERT(CCProxy::isMainThread());
+ CCProxy::implThread()->postTask(createCCThreadTask(this, &CCThreadProxy::setShowFPSCounterOnImplThread, show));
+}
+
+void CCThreadProxy::setShowFPSCounterOnImplThread(bool show)
+{
+ TRACE_EVENT0("cc", "CCThreadProxy::setShowFPSCounterOnImplThread");
+ ASSERT(CCProxy::isImplThread());
+ m_layerTreeHostImpl->setShowFPSCounter(show);
+}
void CCThreadProxy::finishAllRenderingOnImplThread(CCCompletionEvent* completion)
{

Powered by Google App Engine
This is Rietveld 408576698