| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |