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

Side by Side Diff: cc/trees/single_thread_proxy.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/single_thread_proxy.h ('k') | content/browser/BUILD.gn » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/single_thread_proxy.h" 5 #include "cc/trees/single_thread_proxy.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/profiler/scoped_tracker.h" 9 #include "base/profiler/scoped_tracker.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 } 721 }
722 722
723 bool SingleThreadProxy::MainFrameWillHappenForTesting() { 723 bool SingleThreadProxy::MainFrameWillHappenForTesting() {
724 if (layer_tree_host_->output_surface_lost()) 724 if (layer_tree_host_->output_surface_lost())
725 return false; 725 return false;
726 if (!scheduler_on_impl_thread_) 726 if (!scheduler_on_impl_thread_)
727 return false; 727 return false;
728 return scheduler_on_impl_thread_->MainFrameForTestingWillHappen(); 728 return scheduler_on_impl_thread_->MainFrameForTestingWillHappen();
729 } 729 }
730 730
731 void SingleThreadProxy::SetChildrenNeedBeginFrames(
732 bool children_need_begin_frames) {
733 scheduler_on_impl_thread_->SetChildrenNeedBeginFrames(
734 children_need_begin_frames);
735 }
736
737 void SingleThreadProxy::SetAuthoritativeVSyncInterval( 731 void SingleThreadProxy::SetAuthoritativeVSyncInterval(
738 const base::TimeDelta& interval) { 732 const base::TimeDelta& interval) {
739 authoritative_vsync_interval_ = interval; 733 authoritative_vsync_interval_ = interval;
740 if (synthetic_begin_frame_source_) { 734 if (synthetic_begin_frame_source_) {
741 synthetic_begin_frame_source_->OnUpdateVSyncParameters(last_vsync_timebase_, 735 synthetic_begin_frame_source_->OnUpdateVSyncParameters(last_vsync_timebase_,
742 interval); 736 interval);
743 } 737 }
744 } 738 }
745 739
746 void SingleThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) { 740 void SingleThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 901
908 void SingleThreadProxy::DidFinishImplFrame() { 902 void SingleThreadProxy::DidFinishImplFrame() {
909 layer_tree_host_impl_->DidFinishImplFrame(); 903 layer_tree_host_impl_->DidFinishImplFrame();
910 #if DCHECK_IS_ON() 904 #if DCHECK_IS_ON()
911 DCHECK(inside_impl_frame_) 905 DCHECK(inside_impl_frame_)
912 << "DidFinishImplFrame called while not inside an impl frame!"; 906 << "DidFinishImplFrame called while not inside an impl frame!";
913 inside_impl_frame_ = false; 907 inside_impl_frame_ = false;
914 #endif 908 #endif
915 } 909 }
916 910
917 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) {
918 layer_tree_host_->SendBeginFramesToChildren(args);
919 }
920
921 } // namespace cc 911 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698