Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(852)

Side by Side Diff: cc/trees/proxy_impl.cc

Issue 2659123004: cc: Add scheduler support for invalidating content on impl thread. (Closed)
Patch Set: tests Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 layer_tree_host_impl_->PrepareTiles(); 541 layer_tree_host_impl_->PrepareTiles();
542 } 542 }
543 543
544 void ProxyImpl::ScheduledActionInvalidateCompositorFrameSink() { 544 void ProxyImpl::ScheduledActionInvalidateCompositorFrameSink() {
545 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionInvalidateCompositorFrameSink"); 545 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionInvalidateCompositorFrameSink");
546 DCHECK(IsImplThread()); 546 DCHECK(IsImplThread());
547 DCHECK(layer_tree_host_impl_->compositor_frame_sink()); 547 DCHECK(layer_tree_host_impl_->compositor_frame_sink());
548 layer_tree_host_impl_->compositor_frame_sink()->Invalidate(); 548 layer_tree_host_impl_->compositor_frame_sink()->Invalidate();
549 } 549 }
550 550
551 void ProxyImpl::ScheduledActionPerformImplSideInvalidation() {
552 NOTIMPLEMENTED();
553 }
554
551 void ProxyImpl::SendBeginMainFrameNotExpectedSoon() { 555 void ProxyImpl::SendBeginMainFrameNotExpectedSoon() {
552 DCHECK(IsImplThread()); 556 DCHECK(IsImplThread());
553 MainThreadTaskRunner()->PostTask( 557 MainThreadTaskRunner()->PostTask(
554 FROM_HERE, base::Bind(&ProxyMain::BeginMainFrameNotExpectedSoon, 558 FROM_HERE, base::Bind(&ProxyMain::BeginMainFrameNotExpectedSoon,
555 proxy_main_weak_ptr_)); 559 proxy_main_weak_ptr_));
556 } 560 }
557 561
558 DrawResult ProxyImpl::DrawInternal(bool forced_draw) { 562 DrawResult ProxyImpl::DrawInternal(bool forced_draw) {
559 TRACE_EVENT_SYNTHETIC_DELAY("cc.Draw"); 563 TRACE_EVENT_SYNTHETIC_DELAY("cc.Draw");
560 564
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { 632 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() {
629 DCHECK(IsMainThreadBlocked() && commit_completion_event_); 633 DCHECK(IsMainThreadBlocked() && commit_completion_event_);
630 return main_thread_blocked_commit_vars_unsafe_; 634 return main_thread_blocked_commit_vars_unsafe_;
631 } 635 }
632 636
633 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() { 637 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() {
634 return task_runner_provider_->MainThreadTaskRunner(); 638 return task_runner_provider_->MainThreadTaskRunner();
635 } 639 }
636 640
637 } // namespace cc 641 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698