OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/proxy_impl.h" | 5 #include "cc/trees/proxy_impl.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <string> | 10 #include <string> |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 void ProxyImpl::WillBeginImplFrame(const BeginFrameArgs& args) { | 476 void ProxyImpl::WillBeginImplFrame(const BeginFrameArgs& args) { |
477 DCHECK(IsImplThread()); | 477 DCHECK(IsImplThread()); |
478 layer_tree_host_impl_->WillBeginImplFrame(args); | 478 layer_tree_host_impl_->WillBeginImplFrame(args); |
479 } | 479 } |
480 | 480 |
481 void ProxyImpl::DidFinishImplFrame() { | 481 void ProxyImpl::DidFinishImplFrame() { |
482 DCHECK(IsImplThread()); | 482 DCHECK(IsImplThread()); |
483 layer_tree_host_impl_->DidFinishImplFrame(); | 483 layer_tree_host_impl_->DidFinishImplFrame(); |
484 } | 484 } |
485 | 485 |
| 486 void ProxyImpl::DidNotProduceFrame(const BeginFrameAck& ack) { |
| 487 DCHECK(IsImplThread()); |
| 488 layer_tree_host_impl_->DidNotProduceFrame(ack); |
| 489 } |
| 490 |
486 void ProxyImpl::ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) { | 491 void ProxyImpl::ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) { |
487 DCHECK(IsImplThread()); | 492 DCHECK(IsImplThread()); |
488 unsigned int begin_frame_id = nextBeginFrameId++; | 493 unsigned int begin_frame_id = nextBeginFrameId++; |
489 benchmark_instrumentation::ScopedBeginFrameTask begin_frame_task( | 494 benchmark_instrumentation::ScopedBeginFrameTask begin_frame_task( |
490 benchmark_instrumentation::kSendBeginFrame, begin_frame_id); | 495 benchmark_instrumentation::kSendBeginFrame, begin_frame_id); |
491 std::unique_ptr<BeginMainFrameAndCommitState> begin_main_frame_state( | 496 std::unique_ptr<BeginMainFrameAndCommitState> begin_main_frame_state( |
492 new BeginMainFrameAndCommitState); | 497 new BeginMainFrameAndCommitState); |
493 begin_main_frame_state->begin_frame_id = begin_frame_id; | 498 begin_main_frame_state->begin_frame_id = begin_frame_id; |
494 begin_main_frame_state->begin_frame_args = args; | 499 begin_main_frame_state->begin_frame_args = args; |
495 begin_main_frame_state->begin_frame_callbacks = | 500 begin_main_frame_state->begin_frame_callbacks = |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { | 699 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { |
695 DCHECK(IsMainThreadBlocked() && commit_completion_event_); | 700 DCHECK(IsMainThreadBlocked() && commit_completion_event_); |
696 return main_thread_blocked_commit_vars_unsafe_; | 701 return main_thread_blocked_commit_vars_unsafe_; |
697 } | 702 } |
698 | 703 |
699 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() { | 704 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() { |
700 return task_runner_provider_->MainThreadTaskRunner(); | 705 return task_runner_provider_->MainThreadTaskRunner(); |
701 } | 706 } |
702 | 707 |
703 } // namespace cc | 708 } // namespace cc |
OLD | NEW |