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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 void ProxyImpl::OnDrawForCompositorFrameSink(bool resourceless_software_draw) { | 466 void ProxyImpl::OnDrawForCompositorFrameSink(bool resourceless_software_draw) { |
467 DCHECK(IsImplThread()); | 467 DCHECK(IsImplThread()); |
468 scheduler_->OnDrawForCompositorFrameSink(resourceless_software_draw); | 468 scheduler_->OnDrawForCompositorFrameSink(resourceless_software_draw); |
469 } | 469 } |
470 | 470 |
471 void ProxyImpl::NeedsImplSideInvalidation() { | 471 void ProxyImpl::NeedsImplSideInvalidation() { |
472 DCHECK(IsImplThread()); | 472 DCHECK(IsImplThread()); |
473 scheduler_->SetNeedsImplSideInvalidation(); | 473 scheduler_->SetNeedsImplSideInvalidation(); |
474 } | 474 } |
475 | 475 |
| 476 void ProxyImpl::NotifyImageDecodeRequestFinished() { |
| 477 DCHECK(IsImplThread()); |
| 478 SetNeedsCommitOnImplThread(); |
| 479 } |
| 480 |
476 void ProxyImpl::WillBeginImplFrame(const BeginFrameArgs& args) { | 481 void ProxyImpl::WillBeginImplFrame(const BeginFrameArgs& args) { |
477 DCHECK(IsImplThread()); | 482 DCHECK(IsImplThread()); |
478 layer_tree_host_impl_->WillBeginImplFrame(args); | 483 layer_tree_host_impl_->WillBeginImplFrame(args); |
479 } | 484 } |
480 | 485 |
481 void ProxyImpl::DidFinishImplFrame() { | 486 void ProxyImpl::DidFinishImplFrame() { |
482 DCHECK(IsImplThread()); | 487 DCHECK(IsImplThread()); |
483 layer_tree_host_impl_->DidFinishImplFrame(); | 488 layer_tree_host_impl_->DidFinishImplFrame(); |
484 } | 489 } |
485 | 490 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { | 704 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { |
700 DCHECK(IsMainThreadBlocked() && commit_completion_event_); | 705 DCHECK(IsMainThreadBlocked() && commit_completion_event_); |
701 return main_thread_blocked_commit_vars_unsafe_; | 706 return main_thread_blocked_commit_vars_unsafe_; |
702 } | 707 } |
703 | 708 |
704 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() { | 709 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() { |
705 return task_runner_provider_->MainThreadTaskRunner(); | 710 return task_runner_provider_->MainThreadTaskRunner(); |
706 } | 711 } |
707 | 712 |
708 } // namespace cc | 713 } // namespace cc |
OLD | NEW |