Index: cc/trees/thread_proxy.cc |
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc |
index 74525200458415e93836061199d5e2221475ab4f..c51d19cda78f0f85916b304a996e05486c4afbe9 100644 |
--- a/cc/trees/thread_proxy.cc |
+++ b/cc/trees/thread_proxy.cc |
@@ -691,6 +691,8 @@ void ThreadProxy::ScheduledActionSendBeginMainFrame() { |
impl().layer_tree_host_impl->memory_allocation_priority_cutoff(); |
begin_main_frame_state->evicted_ui_resources = |
impl().layer_tree_host_impl->EvictedUIResourcesExist(); |
+ impl().layer_tree_host_impl->SetCurrentRequestAnimationFrameTime( |
+ begin_main_frame_state->begin_frame_args.frame_time); |
Proxy::MainThreadTaskRunner()->PostTask( |
FROM_HERE, |
base::Bind(&ThreadProxy::BeginMainFrame, |
@@ -1369,4 +1371,9 @@ void ThreadProxy::DidCompletePageScaleAnimationOnImplThread() { |
main_thread_weak_ptr_)); |
} |
+base::TimeTicks ThreadProxy::GetNextPredictedRequestAnimationFrameTime() const { |
+ DCHECK(IsImplThread()); |
+ return impl().scheduler->NextPredictedRequestAnimationFrameTime(); |
+} |
+ |
} // namespace cc |