| 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 void ProxyImpl::OnDrawForCompositorFrameSink(bool resourceless_software_draw) { | 456 void ProxyImpl::OnDrawForCompositorFrameSink(bool resourceless_software_draw) { |
| 457 DCHECK(IsImplThread()); | 457 DCHECK(IsImplThread()); |
| 458 scheduler_->OnDrawForCompositorFrameSink(resourceless_software_draw); | 458 scheduler_->OnDrawForCompositorFrameSink(resourceless_software_draw); |
| 459 } | 459 } |
| 460 | 460 |
| 461 void ProxyImpl::NeedsImplSideInvalidation() { | 461 void ProxyImpl::NeedsImplSideInvalidation() { |
| 462 DCHECK(IsImplThread()); | 462 DCHECK(IsImplThread()); |
| 463 scheduler_->SetNeedsImplSideInvalidation(); | 463 scheduler_->SetNeedsImplSideInvalidation(); |
| 464 } | 464 } |
| 465 | 465 |
| 466 void ProxyImpl::NotifyImageDecodeRequestFinished() { |
| 467 DCHECK(IsImplThread()); |
| 468 SetNeedsCommitOnImplThread(); |
| 469 } |
| 470 |
| 466 void ProxyImpl::WillBeginImplFrame(const BeginFrameArgs& args) { | 471 void ProxyImpl::WillBeginImplFrame(const BeginFrameArgs& args) { |
| 467 DCHECK(IsImplThread()); | 472 DCHECK(IsImplThread()); |
| 468 layer_tree_host_impl_->WillBeginImplFrame(args); | 473 layer_tree_host_impl_->WillBeginImplFrame(args); |
| 469 } | 474 } |
| 470 | 475 |
| 471 void ProxyImpl::DidFinishImplFrame() { | 476 void ProxyImpl::DidFinishImplFrame() { |
| 472 DCHECK(IsImplThread()); | 477 DCHECK(IsImplThread()); |
| 473 layer_tree_host_impl_->DidFinishImplFrame(); | 478 layer_tree_host_impl_->DidFinishImplFrame(); |
| 474 } | 479 } |
| 475 | 480 |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { | 681 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { |
| 677 DCHECK(IsMainThreadBlocked() && commit_completion_event_); | 682 DCHECK(IsMainThreadBlocked() && commit_completion_event_); |
| 678 return main_thread_blocked_commit_vars_unsafe_; | 683 return main_thread_blocked_commit_vars_unsafe_; |
| 679 } | 684 } |
| 680 | 685 |
| 681 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() { | 686 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() { |
| 682 return task_runner_provider_->MainThreadTaskRunner(); | 687 return task_runner_provider_->MainThreadTaskRunner(); |
| 683 } | 688 } |
| 684 | 689 |
| 685 } // namespace cc | 690 } // namespace cc |
| OLD | NEW |