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

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: Remove some comments 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
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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 layer_tree_host_impl_->PrepareTiles(); 603 layer_tree_host_impl_->PrepareTiles();
604 } 604 }
605 605
606 void ProxyImpl::ScheduledActionInvalidateOutputSurface() { 606 void ProxyImpl::ScheduledActionInvalidateOutputSurface() {
607 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionInvalidateOutputSurface"); 607 TRACE_EVENT0("cc", "ProxyImpl::ScheduledActionInvalidateOutputSurface");
608 DCHECK(IsImplThread()); 608 DCHECK(IsImplThread());
609 DCHECK(layer_tree_host_impl_->output_surface()); 609 DCHECK(layer_tree_host_impl_->output_surface());
610 layer_tree_host_impl_->output_surface()->Invalidate(); 610 layer_tree_host_impl_->output_surface()->Invalidate();
611 } 611 }
612 612
613 void ProxyImpl::SendBeginFramesToChildren(const BeginFrameArgs& args) {
614 NOTREACHED() << "Only used by SingleThreadProxy";
615 }
616
617 void ProxyImpl::SendBeginMainFrameNotExpectedSoon() { 613 void ProxyImpl::SendBeginMainFrameNotExpectedSoon() {
618 DCHECK(IsImplThread()); 614 DCHECK(IsImplThread());
619 channel_impl_->BeginMainFrameNotExpectedSoon(); 615 channel_impl_->BeginMainFrameNotExpectedSoon();
620 } 616 }
621 617
622 DrawResult ProxyImpl::DrawAndSwapInternal(bool forced_draw) { 618 DrawResult ProxyImpl::DrawAndSwapInternal(bool forced_draw) {
623 TRACE_EVENT_SYNTHETIC_DELAY("cc.DrawAndSwap"); 619 TRACE_EVENT_SYNTHETIC_DELAY("cc.DrawAndSwap");
624 620
625 DCHECK(IsImplThread()); 621 DCHECK(IsImplThread());
626 DCHECK(layer_tree_host_impl_.get()); 622 DCHECK(layer_tree_host_impl_.get());
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 bool ProxyImpl::IsMainThreadBlocked() const { 682 bool ProxyImpl::IsMainThreadBlocked() const {
687 return task_runner_provider_->IsMainThreadBlocked(); 683 return task_runner_provider_->IsMainThreadBlocked();
688 } 684 }
689 685
690 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() { 686 ProxyImpl::BlockedMainCommitOnly& ProxyImpl::blocked_main_commit() {
691 DCHECK(IsMainThreadBlocked() && commit_completion_event_); 687 DCHECK(IsMainThreadBlocked() && commit_completion_event_);
692 return main_thread_blocked_commit_vars_unsafe_; 688 return main_thread_blocked_commit_vars_unsafe_;
693 } 689 }
694 690
695 } // namespace cc 691 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698