OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/trees/single_thread_proxy.h" | 5 #include "cc/trees/single_thread_proxy.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "cc/debug/benchmark_instrumentation.h" | 9 #include "cc/debug/benchmark_instrumentation.h" |
10 #include "cc/output/context_provider.h" | 10 #include "cc/output/context_provider.h" |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 timing_history_.DidActivateSyncTree(); | 440 timing_history_.DidActivateSyncTree(); |
441 } | 441 } |
442 | 442 |
443 void SingleThreadProxy::DidPrepareTiles() { | 443 void SingleThreadProxy::DidPrepareTiles() { |
444 DCHECK(layer_tree_host_impl_->settings().impl_side_painting); | 444 DCHECK(layer_tree_host_impl_->settings().impl_side_painting); |
445 DCHECK(Proxy::IsImplThread()); | 445 DCHECK(Proxy::IsImplThread()); |
446 if (scheduler_on_impl_thread_) | 446 if (scheduler_on_impl_thread_) |
447 scheduler_on_impl_thread_->DidPrepareTiles(); | 447 scheduler_on_impl_thread_->DidPrepareTiles(); |
448 } | 448 } |
449 | 449 |
| 450 void SingleThreadProxy::DidCompletePageScaleAnimationOnImplThread() { |
| 451 layer_tree_host_->DidCompletePageScaleAnimation(); |
| 452 } |
| 453 |
450 void SingleThreadProxy::UpdateRendererCapabilitiesOnImplThread() { | 454 void SingleThreadProxy::UpdateRendererCapabilitiesOnImplThread() { |
451 DCHECK(IsImplThread()); | 455 DCHECK(IsImplThread()); |
452 renderer_capabilities_for_main_thread_ = | 456 renderer_capabilities_for_main_thread_ = |
453 layer_tree_host_impl_->GetRendererCapabilities().MainThreadCapabilities(); | 457 layer_tree_host_impl_->GetRendererCapabilities().MainThreadCapabilities(); |
454 } | 458 } |
455 | 459 |
456 void SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() { | 460 void SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() { |
457 TRACE_EVENT0("cc", "SingleThreadProxy::DidLoseOutputSurfaceOnImplThread"); | 461 TRACE_EVENT0("cc", "SingleThreadProxy::DidLoseOutputSurfaceOnImplThread"); |
458 { | 462 { |
459 DebugScopedSetMainThread main(this); | 463 DebugScopedSetMainThread main(this); |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 | 810 |
807 void SingleThreadProxy::DidBeginImplFrameDeadline() { | 811 void SingleThreadProxy::DidBeginImplFrameDeadline() { |
808 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); | 812 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); |
809 } | 813 } |
810 | 814 |
811 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { | 815 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { |
812 layer_tree_host_->SendBeginFramesToChildren(args); | 816 layer_tree_host_->SendBeginFramesToChildren(args); |
813 } | 817 } |
814 | 818 |
815 } // namespace cc | 819 } // namespace cc |
OLD | NEW |