Index: cc/trees/thread_proxy.cc |
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc |
index b307c9e5cbfe91e1068bf7ace9fbd04be8ad174f..34782d6d68550118560c3bf034115cc7d8095113 100644 |
--- a/cc/trees/thread_proxy.cc |
+++ b/cc/trees/thread_proxy.cc |
@@ -1085,6 +1085,16 @@ base::TimeDelta ThreadProxy::DrawDurationEstimate() { |
return historical_estimate + padding; |
} |
+void ThreadProxy::PostBeginFrameDeadline(const base::Closure &closure, |
+ base::TimeTicks deadline) { |
+ base::TimeDelta delta = deadline - base::TimeTicks::Now(); |
+ if (delta <= base::TimeDelta()) { |
+ closure.Run(); |
+ return; |
+ } |
+ Proxy::ImplThread()->PostDelayedTask(closure, delta); |
+} |
+ |
void ThreadProxy::ReadyToFinalizeTextureUpdates() { |
DCHECK(IsImplThread()); |
scheduler_on_impl_thread_->FinishCommit(); |