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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 timing_history_.DidActivateSyncTree(); | 438 timing_history_.DidActivateSyncTree(); |
439 } | 439 } |
440 | 440 |
441 void SingleThreadProxy::DidManageTiles() { | 441 void SingleThreadProxy::DidManageTiles() { |
442 DCHECK(layer_tree_host_impl_->settings().impl_side_painting); | 442 DCHECK(layer_tree_host_impl_->settings().impl_side_painting); |
443 DCHECK(Proxy::IsImplThread()); | 443 DCHECK(Proxy::IsImplThread()); |
444 if (scheduler_on_impl_thread_) | 444 if (scheduler_on_impl_thread_) |
445 scheduler_on_impl_thread_->DidManageTiles(); | 445 scheduler_on_impl_thread_->DidManageTiles(); |
446 } | 446 } |
447 | 447 |
| 448 void SingleThreadProxy::DidCompletePageScaleAnimationBeforeCommit() { |
| 449 layer_tree_host_->DidCompletePageScaleAnimationBeforeCommit(); |
| 450 } |
| 451 |
448 void SingleThreadProxy::UpdateRendererCapabilitiesOnImplThread() { | 452 void SingleThreadProxy::UpdateRendererCapabilitiesOnImplThread() { |
449 DCHECK(IsImplThread()); | 453 DCHECK(IsImplThread()); |
450 renderer_capabilities_for_main_thread_ = | 454 renderer_capabilities_for_main_thread_ = |
451 layer_tree_host_impl_->GetRendererCapabilities().MainThreadCapabilities(); | 455 layer_tree_host_impl_->GetRendererCapabilities().MainThreadCapabilities(); |
452 } | 456 } |
453 | 457 |
454 void SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() { | 458 void SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() { |
455 TRACE_EVENT0("cc", "SingleThreadProxy::DidLoseOutputSurfaceOnImplThread"); | 459 TRACE_EVENT0("cc", "SingleThreadProxy::DidLoseOutputSurfaceOnImplThread"); |
456 { | 460 { |
457 DebugScopedSetMainThread main(this); | 461 DebugScopedSetMainThread main(this); |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 | 790 |
787 base::TimeDelta SingleThreadProxy::CommitToActivateDurationEstimate() { | 791 base::TimeDelta SingleThreadProxy::CommitToActivateDurationEstimate() { |
788 return timing_history_.CommitToActivateDurationEstimate(); | 792 return timing_history_.CommitToActivateDurationEstimate(); |
789 } | 793 } |
790 | 794 |
791 void SingleThreadProxy::DidBeginImplFrameDeadline() { | 795 void SingleThreadProxy::DidBeginImplFrameDeadline() { |
792 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); | 796 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); |
793 } | 797 } |
794 | 798 |
795 } // namespace cc | 799 } // namespace cc |
OLD | NEW |