| Index: cc/trees/thread_proxy.cc
|
| diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
|
| index 8a1547c32749256fe61b6e0e528aa4a73706985e..77a490ef64aeeb2dc46377ee2465f5d472a2001b 100644
|
| --- a/cc/trees/thread_proxy.cc
|
| +++ b/cc/trees/thread_proxy.cc
|
| @@ -443,22 +443,22 @@ void ThreadProxy::OnSwapBuffersCompleteOnImplThread() {
|
| base::Bind(&ThreadProxy::DidCompleteSwapBuffers, main_thread_weak_ptr_));
|
| }
|
|
|
| -void ThreadProxy::SetNeedsBeginImplFrame(bool enable) {
|
| - TRACE_EVENT1("cc", "ThreadProxy::SetNeedsBeginImplFrame", "enable", enable);
|
| +void ThreadProxy::SetNeedsBeginFrame(bool enable) {
|
| + TRACE_EVENT1("cc", "ThreadProxy::SetNeedsBeginFrame", "enable", enable);
|
| DCHECK(IsImplThread());
|
| - impl().layer_tree_host_impl->SetNeedsBeginImplFrame(enable);
|
| + impl().layer_tree_host_impl->SetNeedsBeginFrame(enable);
|
| UpdateBackgroundAnimateTicking();
|
| }
|
|
|
| -void ThreadProxy::BeginImplFrame(const BeginFrameArgs& args) {
|
| - TRACE_EVENT0("cc", "ThreadProxy::BeginImplFrame");
|
| +void ThreadProxy::BeginFrame(const BeginFrameArgs& args) {
|
| DCHECK(IsImplThread());
|
| + impl().scheduler->BeginFrame(args);
|
| +}
|
|
|
| +void ThreadProxy::OnBeginImplFrame(const BeginFrameArgs& args) {
|
| // Sample the frame time now. This time will be used for updating animations
|
| // when we draw.
|
| impl().layer_tree_host_impl->UpdateCurrentFrameTime();
|
| -
|
| - impl().scheduler->BeginImplFrame(args);
|
| }
|
|
|
| void ThreadProxy::OnCanDrawStateChanged(bool can_draw) {
|
| @@ -967,6 +967,7 @@ void ThreadProxy::BeginMainFrame(
|
| &completion,
|
| queue.release(),
|
| offscreen_context_provider));
|
| +
|
| completion.Wait();
|
|
|
| RenderingStatsInstrumentation* stats_instrumentation =
|
| @@ -1529,7 +1530,7 @@ void ThreadProxy::LayerTreeHostClosedOnImplThread(CompletionEvent* completion) {
|
| layer_tree_host()->DeleteContentsTexturesOnImplThread(
|
| impl().layer_tree_host_impl->resource_provider());
|
| impl().current_resource_update_controller.reset();
|
| - impl().layer_tree_host_impl->SetNeedsBeginImplFrame(false);
|
| + impl().layer_tree_host_impl->SetNeedsBeginFrame(false);
|
| impl().scheduler.reset();
|
| impl().layer_tree_host_impl.reset();
|
| impl().weak_factory.InvalidateWeakPtrs();
|
|
|