| 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 timing_history_.DidActivateSyncTree(); | 432 timing_history_.DidActivateSyncTree(); |
| 433 } | 433 } |
| 434 | 434 |
| 435 void SingleThreadProxy::DidPrepareTiles() { | 435 void SingleThreadProxy::DidPrepareTiles() { |
| 436 DCHECK(layer_tree_host_impl_->settings().impl_side_painting); | 436 DCHECK(layer_tree_host_impl_->settings().impl_side_painting); |
| 437 DCHECK(Proxy::IsImplThread()); | 437 DCHECK(Proxy::IsImplThread()); |
| 438 if (scheduler_on_impl_thread_) | 438 if (scheduler_on_impl_thread_) |
| 439 scheduler_on_impl_thread_->DidPrepareTiles(); | 439 scheduler_on_impl_thread_->DidPrepareTiles(); |
| 440 } | 440 } |
| 441 | 441 |
| 442 void SingleThreadProxy::DidCompletePageScaleAnimationOnImplThread() { |
| 443 layer_tree_host_->DidCompletePageScaleAnimation(); |
| 444 } |
| 445 |
| 442 void SingleThreadProxy::UpdateRendererCapabilitiesOnImplThread() { | 446 void SingleThreadProxy::UpdateRendererCapabilitiesOnImplThread() { |
| 443 DCHECK(IsImplThread()); | 447 DCHECK(IsImplThread()); |
| 444 renderer_capabilities_for_main_thread_ = | 448 renderer_capabilities_for_main_thread_ = |
| 445 layer_tree_host_impl_->GetRendererCapabilities().MainThreadCapabilities(); | 449 layer_tree_host_impl_->GetRendererCapabilities().MainThreadCapabilities(); |
| 446 } | 450 } |
| 447 | 451 |
| 448 void SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() { | 452 void SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() { |
| 449 TRACE_EVENT0("cc", "SingleThreadProxy::DidLoseOutputSurfaceOnImplThread"); | 453 TRACE_EVENT0("cc", "SingleThreadProxy::DidLoseOutputSurfaceOnImplThread"); |
| 450 { | 454 { |
| 451 DebugScopedSetMainThread main(this); | 455 DebugScopedSetMainThread main(this); |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 | 802 |
| 799 void SingleThreadProxy::DidBeginImplFrameDeadline() { | 803 void SingleThreadProxy::DidBeginImplFrameDeadline() { |
| 800 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); | 804 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); |
| 801 } | 805 } |
| 802 | 806 |
| 803 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { | 807 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { |
| 804 layer_tree_host_->SendBeginFramesToChildren(args); | 808 layer_tree_host_->SendBeginFramesToChildren(args); |
| 805 } | 809 } |
| 806 | 810 |
| 807 } // namespace cc | 811 } // namespace cc |
| OLD | NEW |