Chromium Code Reviews| Index: cc/trees/thread_proxy.cc |
| diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc |
| index 4efb4015c9e4045d2ed5fd1cd172e173249a1b8b..35419661a21d66bb1e1e789c7b5ac5297c43cb3c 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->SetBeginMainFrameTime( |
|
enne (OOO)
2015/03/06 00:00:57
I'm not quite sure I follow what this is doing. W
vmpstr
2015/03/06 00:59:53
So this is meant to capture the time it takes for
|
| + impl().scheduler->LastBeginImplFrameTime()); |
| Proxy::MainThreadTaskRunner()->PostTask( |
| FROM_HERE, |
| base::Bind(&ThreadProxy::BeginMainFrame, |
| @@ -1395,4 +1397,9 @@ void ThreadProxy::DidCompletePageScaleAnimationOnImplThread() { |
| main_thread_weak_ptr_)); |
| } |
| +base::TimeTicks ThreadProxy::GetNextBeginImplFrameTimeIfRequested() const { |
| + DCHECK(IsImplThread()); |
| + return impl().scheduler->NextBeginImplFrameTimeIfRequested(); |
| +} |
| + |
| } // namespace cc |