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

Unified Diff: cc/thread_proxy.cc

Issue 11854013: Use input events to improve vsync scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't set last-input-for-vsync bit on pages with touch handlers. Created 7 years, 11 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 9b354005f880346685eb9049196af79a07f76837..c63a6a54051f9e7089768e62ad0f4526ee54c8b0 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -325,6 +325,14 @@ void ThreadProxy::didVSync(base::TimeTicks frameTime)
m_vsyncClient->DidVSync(frameTime);
}
+void ThreadProxy::didReceiveLastInputEventForVSync()
+{
+ DCHECK(isImplThread());
+ TRACE_EVENT0("cc", "ThreadProxy::didReceiveLastInputEventForVSync");
+ if (m_vsyncClient)
+ m_vsyncClient->DidReceiveLastInputEventForVSync();
+}
+
void ThreadProxy::onCanDrawStateChanged(bool canDraw)
{
DCHECK(isImplThread());
« no previous file with comments | « cc/thread_proxy.h ('k') | cc/vsync_time_source.h » ('j') | cc/vsync_time_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698