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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 DebugScopedSetMainThread main(this); | 550 DebugScopedSetMainThread main(this); |
551 next_frame_is_newly_committed_frame_ = false; | 551 next_frame_is_newly_committed_frame_ = false; |
552 layer_tree_host_->DidCommitAndDrawFrame(); | 552 layer_tree_host_->DidCommitAndDrawFrame(); |
553 } | 553 } |
554 } | 554 } |
555 | 555 |
556 bool SingleThreadProxy::MainFrameWillHappenForTesting() { | 556 bool SingleThreadProxy::MainFrameWillHappenForTesting() { |
557 return false; | 557 return false; |
558 } | 558 } |
559 | 559 |
| 560 void SingleThreadProxy::SetAuthoritativeVSyncInterval( |
| 561 base::TimeDelta interval) { |
| 562 scheduler_on_impl_thread_->SetAuthoritativeVSyncInterval(interval); |
| 563 } |
| 564 |
| 565 void SingleThreadProxy::SetChildrenNeedBeginFrames(bool need_begin_frame) { |
| 566 scheduler_on_impl_thread_->SetChildrenNeedBeginFrames(need_begin_frame); |
| 567 } |
| 568 |
560 void SingleThreadProxy::SetNeedsBeginFrame(bool enable) { | 569 void SingleThreadProxy::SetNeedsBeginFrame(bool enable) { |
561 layer_tree_host_impl_->SetNeedsBeginFrame(enable); | 570 layer_tree_host_impl_->SetNeedsBeginFrame(enable); |
562 } | 571 } |
563 | 572 |
564 void SingleThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) { | 573 void SingleThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) { |
565 layer_tree_host_impl_->WillBeginImplFrame(args); | 574 layer_tree_host_impl_->WillBeginImplFrame(args); |
566 } | 575 } |
567 | 576 |
568 void SingleThreadProxy::ScheduledActionSendBeginMainFrame() { | 577 void SingleThreadProxy::ScheduledActionSendBeginMainFrame() { |
569 TRACE_EVENT0("cc", "SingleThreadProxy::ScheduledActionSendBeginMainFrame"); | 578 TRACE_EVENT0("cc", "SingleThreadProxy::ScheduledActionSendBeginMainFrame"); |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 } | 697 } |
689 | 698 |
690 base::TimeDelta SingleThreadProxy::CommitToActivateDurationEstimate() { | 699 base::TimeDelta SingleThreadProxy::CommitToActivateDurationEstimate() { |
691 return timing_history_.CommitToActivateDurationEstimate(); | 700 return timing_history_.CommitToActivateDurationEstimate(); |
692 } | 701 } |
693 | 702 |
694 void SingleThreadProxy::DidBeginImplFrameDeadline() { | 703 void SingleThreadProxy::DidBeginImplFrameDeadline() { |
695 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); | 704 layer_tree_host_impl_->ResetCurrentBeginFrameArgsForNextFrame(); |
696 } | 705 } |
697 | 706 |
| 707 void SingleThreadProxy::SendBeginFrameToChildren(const BeginFrameArgs& args) { |
| 708 layer_tree_host_->SendBeginFrameToChildren(args); |
| 709 } |
| 710 |
698 } // namespace cc | 711 } // namespace cc |
OLD | NEW |