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

Unified Diff: cc/thread_proxy.cc

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor input event changes Created 8 years 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 cd0baa3b6aa6dbc3d892f62a2f039722001599bb..a1042d1ab2874106d7d46f2062443044793e3438 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -846,6 +846,20 @@ void ThreadProxy::didCommitAndDrawFrame()
m_layerTreeHost->didCommitAndDrawFrame();
}
+void ThreadProxy::onReceivedLatencyInfo(const WebKit::WebLatencyInfoImpl& latencyInfo)
+{
+ DCHECK(isImplThread());
+ m_mainThreadProxy->postTask(FROM_HERE, base::Bind(&ThreadProxy::receivedLatencyInfo, base::Unretained(this), latencyInfo));
+}
+
+void ThreadProxy::receivedLatencyInfo(const WebKit::WebLatencyInfoImpl& latencyInfo)
+{
+ DCHECK(isMainThread());
+ if (!m_layerTreeHost)
+ return;
+ m_layerTreeHost->onReceivedLatencyInfo(latencyInfo);
+}
+
void ThreadProxy::didCompleteSwapBuffers()
{
DCHECK(isMainThread());

Powered by Google App Engine
This is Rietveld 408576698