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

Side by Side Diff: cc/trees/layer_tree_host.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/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 } 1190 }
1191 1191
1192 void LayerTreeHost::set_surface_id_namespace(uint32_t id_namespace) { 1192 void LayerTreeHost::set_surface_id_namespace(uint32_t id_namespace) {
1193 surface_id_namespace_ = id_namespace; 1193 surface_id_namespace_ = id_namespace;
1194 } 1194 }
1195 1195
1196 SurfaceSequence LayerTreeHost::CreateSurfaceSequence() { 1196 SurfaceSequence LayerTreeHost::CreateSurfaceSequence() {
1197 return SurfaceSequence(surface_id_namespace_, next_surface_sequence_++); 1197 return SurfaceSequence(surface_id_namespace_, next_surface_sequence_++);
1198 } 1198 }
1199 1199
1200 void LayerTreeHost::SetChildrenNeedBeginFrames(
1201 bool children_need_begin_frames) const {
1202 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames);
1203 }
1204
1205 void LayerTreeHost::SendBeginFramesToChildren(
1206 const BeginFrameArgs& args) const {
1207 client_->SendBeginFramesToChildren(args);
1208 }
1209
1210 void LayerTreeHost::SetAuthoritativeVSyncInterval( 1200 void LayerTreeHost::SetAuthoritativeVSyncInterval(
1211 const base::TimeDelta& interval) { 1201 const base::TimeDelta& interval) {
1212 proxy_->SetAuthoritativeVSyncInterval(interval); 1202 proxy_->SetAuthoritativeVSyncInterval(interval);
1213 } 1203 }
1214 1204
1215 void LayerTreeHost::RecordFrameTimingEvents( 1205 void LayerTreeHost::RecordFrameTimingEvents(
1216 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, 1206 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
1217 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) { 1207 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) {
1218 client_->RecordFrameTimingEvents(std::move(composite_events), 1208 client_->RecordFrameTimingEvents(std::move(composite_events),
1219 std::move(main_frame_events)); 1209 std::move(main_frame_events));
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1570 LayerTreeHostCommon::CallFunctionForSubtree( 1560 LayerTreeHostCommon::CallFunctionForSubtree(
1571 root_layer(), [seq_num](Layer* layer) { 1561 root_layer(), [seq_num](Layer* layer) {
1572 layer->set_property_tree_sequence_number(seq_num); 1562 layer->set_property_tree_sequence_number(seq_num);
1573 }); 1563 });
1574 1564
1575 surface_id_namespace_ = proto.surface_id_namespace(); 1565 surface_id_namespace_ = proto.surface_id_namespace();
1576 next_surface_sequence_ = proto.next_surface_sequence(); 1566 next_surface_sequence_ = proto.next_surface_sequence();
1577 } 1567 }
1578 1568
1579 } // namespace cc 1569 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698