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

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

Issue 2659123004: cc: Add scheduler support for invalidating content on impl thread. (Closed)
Patch Set: no DCHECK Created 3 years, 9 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
« no previous file with comments | « cc/trees/proxy_impl.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 layer_tree_host_impl_->PrepareTiles(); 548 layer_tree_host_impl_->PrepareTiles();
549 } 549 }
550 550
551 void ProxyImpl::ScheduledActionInvalidateCompositorFrameSink() { 551 void ProxyImpl::ScheduledActionInvalidateCompositorFrameSink() {
552 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionInvalidateCompositorFrameSink"); 552 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionInvalidateCompositorFrameSink");
553 DCHECK(IsImplThread()); 553 DCHECK(IsImplThread());
554 DCHECK(layer_tree_host_impl_->compositor_frame_sink()); 554 DCHECK(layer_tree_host_impl_->compositor_frame_sink());
555 layer_tree_host_impl_->compositor_frame_sink()->Invalidate(); 555 layer_tree_host_impl_->compositor_frame_sink()->Invalidate();
556 } 556 }
557 557
558 void ProxyImpl::ScheduledActionPerformImplSideInvalidation() {
559 NOTIMPLEMENTED();
560 }
561
558 void ProxyImpl::SendBeginMainFrameNotExpectedSoon() { 562 void ProxyImpl::SendBeginMainFrameNotExpectedSoon() {
559 DCHECK(IsImplThread()); 563 DCHECK(IsImplThread());
560 MainThreadTaskRunner()->PostTask( 564 MainThreadTaskRunner()->PostTask(
561 FROM_HERE, base::Bind(&ProxyMain::BeginMainFrameNotExpectedSoon, 565 FROM_HERE, base::Bind(&ProxyMain::BeginMainFrameNotExpectedSoon,
562 proxy_main_weak_ptr_)); 566 proxy_main_weak_ptr_));
563 } 567 }
564 568
565 DrawResult ProxyImpl::DrawInternal(bool forced_draw) { 569 DrawResult ProxyImpl::DrawInternal(bool forced_draw) {
566 TRACE_EVENT_SYNTHETIC_DELAY("cc.Draw"); 570 TRACE_EVENT_SYNTHETIC_DELAY("cc.Draw");
567 571
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { 639 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() {
636 DCHECK(IsMainThreadBlocked() && commit_completion_event_); 640 DCHECK(IsMainThreadBlocked() && commit_completion_event_);
637 return main_thread_blocked_commit_vars_unsafe_; 641 return main_thread_blocked_commit_vars_unsafe_;
638 } 642 }
639 643
640 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() { 644 base::SingleThreadTaskRunner* ProxyImpl::MainThreadTaskRunner() {
641 return task_runner_provider_->MainThreadTaskRunner(); 645 return task_runner_provider_->MainThreadTaskRunner();
642 } 646 }
643 647
644 } // namespace cc 648 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/proxy_impl.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698