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

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: 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 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/profiler/scoped_tracker.h" 8 #include "base/profiler/scoped_tracker.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "cc/animation/animation_events.h" 10 #include "cc/animation/animation_events.h"
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 } 719 }
720 720
721 bool SingleThreadProxy::MainFrameWillHappenForTesting() { 721 bool SingleThreadProxy::MainFrameWillHappenForTesting() {
722 if (layer_tree_host_->output_surface_lost()) 722 if (layer_tree_host_->output_surface_lost())
723 return false; 723 return false;
724 if (!scheduler_on_impl_thread_) 724 if (!scheduler_on_impl_thread_)
725 return false; 725 return false;
726 return scheduler_on_impl_thread_->MainFrameForTestingWillHappen(); 726 return scheduler_on_impl_thread_->MainFrameForTestingWillHappen();
727 } 727 }
728 728
729 void SingleThreadProxy::SetChildrenNeedBeginFrames(
730 bool children_need_begin_frames) {
731 scheduler_on_impl_thread_->SetChildrenNeedBeginFrames(
732 children_need_begin_frames);
733 }
734
735 void SingleThreadProxy::SetAuthoritativeVSyncInterval( 729 void SingleThreadProxy::SetAuthoritativeVSyncInterval(
736 const base::TimeDelta& interval) { 730 const base::TimeDelta& interval) {
737 authoritative_vsync_interval_ = interval; 731 authoritative_vsync_interval_ = interval;
738 if (synthetic_begin_frame_source_) { 732 if (synthetic_begin_frame_source_) {
739 synthetic_begin_frame_source_->OnUpdateVSyncParameters(last_vsync_timebase_, 733 synthetic_begin_frame_source_->OnUpdateVSyncParameters(last_vsync_timebase_,
740 interval); 734 interval);
741 } 735 }
742 } 736 }
743 737
744 void SingleThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) { 738 void SingleThreadProxy::WillBeginImplFrame(const BeginFrameArgs& args) {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 899
906 void SingleThreadProxy::DidFinishImplFrame() { 900 void SingleThreadProxy::DidFinishImplFrame() {
907 layer_tree_host_impl_->DidFinishImplFrame(); 901 layer_tree_host_impl_->DidFinishImplFrame();
908 #if DCHECK_IS_ON() 902 #if DCHECK_IS_ON()
909 DCHECK(inside_impl_frame_) 903 DCHECK(inside_impl_frame_)
910 << "DidFinishImplFrame called while not inside an impl frame!"; 904 << "DidFinishImplFrame called while not inside an impl frame!";
911 inside_impl_frame_ = false; 905 inside_impl_frame_ = false;
912 #endif 906 #endif
913 } 907 }
914 908
915 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) {
916 layer_tree_host_->SendBeginFramesToChildren(args);
917 }
918
919 } // namespace cc 909 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698