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

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

Issue 1841083007: Remove SendBeginFramesToChildren plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scheduler_output_surface_client_set_beginframesource
Patch Set: Rebase Created 4 years, 8 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/proxy_main.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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 layer_tree_host_impl_->PrepareTiles(); 607 layer_tree_host_impl_->PrepareTiles();
608 } 608 }
609 609
610 void ProxyImpl::ScheduledActionInvalidateOutputSurface() { 610 void ProxyImpl::ScheduledActionInvalidateOutputSurface() {
611 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionInvalidateOutputSurface"); 611 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionInvalidateOutputSurface");
612 DCHECK(IsImplThread()); 612 DCHECK(IsImplThread());
613 DCHECK(layer_tree_host_impl_->output_surface()); 613 DCHECK(layer_tree_host_impl_->output_surface());
614 layer_tree_host_impl_->output_surface()->Invalidate(); 614 layer_tree_host_impl_->output_surface()->Invalidate();
615 } 615 }
616 616
617 void ProxyImpl::SendBeginFramesToChildren(const BeginFrameArgs& args) {
618 NOTREACHED() << "Only used by SingleThreadProxy";
619 }
620
621 void ProxyImpl::SendBeginMainFrameNotExpectedSoon() { 617 void ProxyImpl::SendBeginMainFrameNotExpectedSoon() {
622 DCHECK(IsImplThread()); 618 DCHECK(IsImplThread());
623 channel_impl_->BeginMainFrameNotExpectedSoon(); 619 channel_impl_->BeginMainFrameNotExpectedSoon();
624 } 620 }
625 621
626 DrawResult ProxyImpl::DrawAndSwapInternal(bool forced_draw) { 622 DrawResult ProxyImpl::DrawAndSwapInternal(bool forced_draw) {
627 TRACE_EVENT_SYNTHETIC_DELAY("cc.DrawAndSwap"); 623 TRACE_EVENT_SYNTHETIC_DELAY("cc.DrawAndSwap");
628 624
629 DCHECK(IsImplThread()); 625 DCHECK(IsImplThread());
630 DCHECK(layer_tree_host_impl_.get()); 626 DCHECK(layer_tree_host_impl_.get());
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 bool ProxyImpl::IsMainThreadBlocked() const { 686 bool ProxyImpl::IsMainThreadBlocked() const {
691 return task_runner_provider_->IsMainThreadBlocked(); 687 return task_runner_provider_->IsMainThreadBlocked();
692 } 688 }
693 689
694 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { 690 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() {
695 DCHECK(IsMainThreadBlocked() && commit_completion_event_); 691 DCHECK(IsMainThreadBlocked() && commit_completion_event_);
696 return main_thread_blocked_commit_vars_unsafe_; 692 return main_thread_blocked_commit_vars_unsafe_;
697 } 693 }
698 694
699 } // namespace cc 695 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/proxy_impl.h ('k') | cc/trees/proxy_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698