| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 layer_tree_host_impl_->PrepareTiles(); | 603 layer_tree_host_impl_->PrepareTiles(); |
| 604 } | 604 } |
| 605 | 605 |
| 606 void ProxyImpl::ScheduledActionInvalidateOutputSurface() { | 606 void ProxyImpl::ScheduledActionInvalidateOutputSurface() { |
| 607 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionInvalidateOutputSurface"); | 607 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionInvalidateOutputSurface"); |
| 608 DCHECK(IsImplThread()); | 608 DCHECK(IsImplThread()); |
| 609 DCHECK(layer_tree_host_impl_->output_surface()); | 609 DCHECK(layer_tree_host_impl_->output_surface()); |
| 610 layer_tree_host_impl_->output_surface()->Invalidate(); | 610 layer_tree_host_impl_->output_surface()->Invalidate(); |
| 611 } | 611 } |
| 612 | 612 |
| 613 void ProxyImpl::SendBeginFramesToChildren(const BeginFrameArgs& args) { | |
| 614 NOTREACHED() << "Only used by SingleThreadProxy"; | |
| 615 } | |
| 616 | |
| 617 void ProxyImpl::SendBeginMainFrameNotExpectedSoon() { | 613 void ProxyImpl::SendBeginMainFrameNotExpectedSoon() { |
| 618 DCHECK(IsImplThread()); | 614 DCHECK(IsImplThread()); |
| 619 channel_impl_->BeginMainFrameNotExpectedSoon(); | 615 channel_impl_->BeginMainFrameNotExpectedSoon(); |
| 620 } | 616 } |
| 621 | 617 |
| 622 DrawResult ProxyImpl::DrawAndSwapInternal(bool forced_draw) { | 618 DrawResult ProxyImpl::DrawAndSwapInternal(bool forced_draw) { |
| 623 TRACE_EVENT_SYNTHETIC_DELAY("cc.DrawAndSwap"); | 619 TRACE_EVENT_SYNTHETIC_DELAY("cc.DrawAndSwap"); |
| 624 | 620 |
| 625 DCHECK(IsImplThread()); | 621 DCHECK(IsImplThread()); |
| 626 DCHECK(layer_tree_host_impl_.get()); | 622 DCHECK(layer_tree_host_impl_.get()); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 bool ProxyImpl::IsMainThreadBlocked() const { | 682 bool ProxyImpl::IsMainThreadBlocked() const { |
| 687 return task_runner_provider_->IsMainThreadBlocked(); | 683 return task_runner_provider_->IsMainThreadBlocked(); |
| 688 } | 684 } |
| 689 | 685 |
| 690 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { | 686 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { |
| 691 DCHECK(IsMainThreadBlocked() && commit_completion_event_); | 687 DCHECK(IsMainThreadBlocked() && commit_completion_event_); |
| 692 return main_thread_blocked_commit_vars_unsafe_; | 688 return main_thread_blocked_commit_vars_unsafe_; |
| 693 } | 689 } |
| 694 | 690 |
| 695 } // namespace cc | 691 } // namespace cc |
| OLD | NEW |