| 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 void ProxyImpl::OnDrawForCompositorFrameSink(bool resourceless_software_draw) { | 430 void ProxyImpl::OnDrawForCompositorFrameSink(bool resourceless_software_draw) { |
| 431 DCHECK(IsImplThread()); | 431 DCHECK(IsImplThread()); |
| 432 scheduler_->OnDrawForCompositorFrameSink(resourceless_software_draw); | 432 scheduler_->OnDrawForCompositorFrameSink(resourceless_software_draw); |
| 433 } | 433 } |
| 434 | 434 |
| 435 void ProxyImpl::NeedsImplSideInvalidation() { | 435 void ProxyImpl::NeedsImplSideInvalidation() { |
| 436 DCHECK(IsImplThread()); | 436 DCHECK(IsImplThread()); |
| 437 scheduler_->SetNeedsImplSideInvalidation(); | 437 scheduler_->SetNeedsImplSideInvalidation(); |
| 438 } | 438 } |
| 439 | 439 |
| 440 void ProxyImpl::NotifyImageDecodeRequestFinished() { |
| 441 DCHECK(IsImplThread()); |
| 442 SetNeedsCommitOnImplThread(); |
| 443 } |
| 444 |
| 440 void ProxyImpl::WillBeginImplFrame(const BeginFrameArgs& args) { | 445 void ProxyImpl::WillBeginImplFrame(const BeginFrameArgs& args) { |
| 441 DCHECK(IsImplThread()); | 446 DCHECK(IsImplThread()); |
| 442 layer_tree_host_impl_->WillBeginImplFrame(args); | 447 layer_tree_host_impl_->WillBeginImplFrame(args); |
| 443 } | 448 } |
| 444 | 449 |
| 445 void ProxyImpl::DidFinishImplFrame() { | 450 void ProxyImpl::DidFinishImplFrame() { |
| 446 DCHECK(IsImplThread()); | 451 DCHECK(IsImplThread()); |
| 447 layer_tree_host_impl_->DidFinishImplFrame(); | 452 layer_tree_host_impl_->DidFinishImplFrame(); |
| 448 } | 453 } |
| 449 | 454 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { | 648 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { |
| 644 DCHECK(IsMainThreadBlocked() && commit_completion_event_); | 649 DCHECK(IsMainThreadBlocked() && commit_completion_event_); |
| 645 return main_thread_blocked_commit_vars_unsafe_; | 650 return main_thread_blocked_commit_vars_unsafe_; |
| 646 } | 651 } |
| 647 | 652 |
| 648 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() { | 653 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() { |
| 649 return task_runner_provider_->MainThreadTaskRunner(); | 654 return task_runner_provider_->MainThreadTaskRunner(); |
| 650 } | 655 } |
| 651 | 656 |
| 652 } // namespace cc | 657 } // namespace cc |
| OLD | NEW |