| Index: cc/trees/thread_proxy.cc
|
| diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
|
| index 3a6c29b6aea6c86dd10e9388246def8d56fca652..49147581640e9a41cad1357356a5218df798a653 100644
|
| --- a/cc/trees/thread_proxy.cc
|
| +++ b/cc/trees/thread_proxy.cc
|
| @@ -443,22 +443,18 @@ void ThreadProxy::OnSwapBuffersCompleteOnImplThread() {
|
| base::Bind(&ThreadProxy::DidCompleteSwapBuffers, main_thread_weak_ptr_));
|
| }
|
|
|
| -void ThreadProxy::SetNeedsBeginImplFrame(bool enable) {
|
| - TRACE_EVENT1("cc", "ThreadProxy::SetNeedsBeginImplFrame", "enable", enable);
|
| - DCHECK(IsImplThread());
|
| - impl().layer_tree_host_impl->SetNeedsBeginImplFrame(enable);
|
| +void ThreadProxy::SetNeedsBeginFrame(bool enable) {
|
| + TRACE_EVENT1("cc", "ThreadProxy::SetNeedsBeginFrame", "enable", enable);
|
| + impl().layer_tree_host_impl->SetNeedsBeginFrame(enable);
|
| UpdateBackgroundAnimateTicking();
|
| }
|
|
|
| -void ThreadProxy::BeginImplFrame(const BeginFrameArgs& args) {
|
| - TRACE_EVENT0("cc", "ThreadProxy::BeginImplFrame");
|
| - DCHECK(IsImplThread());
|
| -
|
| - // Sample the frame time now. This time will be used for updating animations
|
| - // when we draw.
|
| - impl().layer_tree_host_impl->UpdateCurrentFrameTime();
|
| +void ThreadProxy::BeginFrame(const BeginFrameArgs& args) {
|
| + impl().scheduler->BeginFrame(args);
|
| +}
|
|
|
| - impl().scheduler->BeginImplFrame(args);
|
| +void ThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) {
|
| + impl().layer_tree_host_impl->WillBeginImplFrame(args);
|
| }
|
|
|
| void ThreadProxy::OnCanDrawStateChanged(bool can_draw) {
|
| @@ -1543,7 +1539,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();
|
|
|