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

Unified Diff: cc/thread_proxy.cc

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: create cc::LatencyInfo Created 7 years, 12 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
« no previous file with comments | « cc/thread_proxy.h ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index ab708613204ecbc672900ca71bdb6abdef33994b..ace1eb3ac4f87cbc8e64897d4a11e4430d4ed5d2 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -867,6 +867,20 @@ void ThreadProxy::didCommitAndDrawFrame()
m_layerTreeHost->didCommitAndDrawFrame();
}
+void ThreadProxy::onReceivedLatencyInfo(const LatencyInfo& latencyInfo)
+{
+ DCHECK(isImplThread());
+ Proxy::mainThread()->postTask(base::Bind(&ThreadProxy::receivedLatencyInfo, base::Unretained(this), latencyInfo));
+}
+
+void ThreadProxy::receivedLatencyInfo(const LatencyInfo& latencyInfo)
+{
+ DCHECK(isMainThread());
+ if (!m_layerTreeHost)
+ return;
+ m_layerTreeHost->onReceivedLatencyInfo(latencyInfo);
+}
+
void ThreadProxy::didCompleteSwapBuffers()
{
DCHECK(isMainThread());
« no previous file with comments | « cc/thread_proxy.h ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698