| 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 void ProxyImpl::OnDrawForCompositorFrameSink(bool resourceless_software_draw) { | 463 void ProxyImpl::OnDrawForCompositorFrameSink(bool resourceless_software_draw) { |
| 464 DCHECK(IsImplThread()); | 464 DCHECK(IsImplThread()); |
| 465 scheduler_->OnDrawForCompositorFrameSink(resourceless_software_draw); | 465 scheduler_->OnDrawForCompositorFrameSink(resourceless_software_draw); |
| 466 } | 466 } |
| 467 | 467 |
| 468 void ProxyImpl::NeedsImplSideInvalidation() { | 468 void ProxyImpl::NeedsImplSideInvalidation() { |
| 469 DCHECK(IsImplThread()); | 469 DCHECK(IsImplThread()); |
| 470 scheduler_->SetNeedsImplSideInvalidation(); | 470 scheduler_->SetNeedsImplSideInvalidation(); |
| 471 } | 471 } |
| 472 | 472 |
| 473 void ProxyImpl::NotifyImageDecodeRequestFinished() { |
| 474 DCHECK(IsImplThread()); |
| 475 SetNeedsCommitOnImplThread(); |
| 476 } |
| 477 |
| 473 void ProxyImpl::WillBeginImplFrame(const BeginFrameArgs& args) { | 478 void ProxyImpl::WillBeginImplFrame(const BeginFrameArgs& args) { |
| 474 DCHECK(IsImplThread()); | 479 DCHECK(IsImplThread()); |
| 475 layer_tree_host_impl_->WillBeginImplFrame(args); | 480 layer_tree_host_impl_->WillBeginImplFrame(args); |
| 476 } | 481 } |
| 477 | 482 |
| 478 void ProxyImpl::DidFinishImplFrame() { | 483 void ProxyImpl::DidFinishImplFrame() { |
| 479 DCHECK(IsImplThread()); | 484 DCHECK(IsImplThread()); |
| 480 layer_tree_host_impl_->DidFinishImplFrame(); | 485 layer_tree_host_impl_->DidFinishImplFrame(); |
| 481 } | 486 } |
| 482 | 487 |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { | 688 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { |
| 684 DCHECK(IsMainThreadBlocked() && commit_completion_event_); | 689 DCHECK(IsMainThreadBlocked() && commit_completion_event_); |
| 685 return main_thread_blocked_commit_vars_unsafe_; | 690 return main_thread_blocked_commit_vars_unsafe_; |
| 686 } | 691 } |
| 687 | 692 |
| 688 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() { | 693 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() { |
| 689 return task_runner_provider_->MainThreadTaskRunner(); | 694 return task_runner_provider_->MainThreadTaskRunner(); |
| 690 } | 695 } |
| 691 | 696 |
| 692 } // namespace cc | 697 } // namespace cc |
| OLD | NEW |