Index: cc/trees/thread_proxy.cc |
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc |
index 521d4cc199f1802e64d4c25f7beb392b1c2a7040..ffd1fbad653b9ec19b65adeb7bb4ac6f7b0403ee 100644 |
--- a/cc/trees/thread_proxy.cc |
+++ b/cc/trees/thread_proxy.cc |
@@ -1101,6 +1101,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::ImplThreadTaskRunner()->PostDelayedTask(FROM_HERE, closure, delta); |
+} |
+ |
void ThreadProxy::ReadyToFinalizeTextureUpdates() { |
DCHECK(IsImplThread()); |
scheduler_on_impl_thread_->FinishCommit(); |