| 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 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1269 } | 1269 } |
| 1270 | 1270 |
| 1271 void LayerTreeHost::set_surface_id_namespace(uint32_t id_namespace) { | 1271 void LayerTreeHost::set_surface_id_namespace(uint32_t id_namespace) { |
| 1272 surface_id_namespace_ = id_namespace; | 1272 surface_id_namespace_ = id_namespace; |
| 1273 } | 1273 } |
| 1274 | 1274 |
| 1275 SurfaceSequence LayerTreeHost::CreateSurfaceSequence() { | 1275 SurfaceSequence LayerTreeHost::CreateSurfaceSequence() { |
| 1276 return SurfaceSequence(surface_id_namespace_, next_surface_sequence_++); | 1276 return SurfaceSequence(surface_id_namespace_, next_surface_sequence_++); |
| 1277 } | 1277 } |
| 1278 | 1278 |
| 1279 void LayerTreeHost::SetChildrenNeedBeginFrames( | |
| 1280 bool children_need_begin_frames) const { | |
| 1281 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); | |
| 1282 } | |
| 1283 | |
| 1284 void LayerTreeHost::SendBeginFramesToChildren( | |
| 1285 const BeginFrameArgs& args) const { | |
| 1286 client_->SendBeginFramesToChildren(args); | |
| 1287 } | |
| 1288 | |
| 1289 void LayerTreeHost::SetAuthoritativeVSyncInterval( | 1279 void LayerTreeHost::SetAuthoritativeVSyncInterval( |
| 1290 const base::TimeDelta& interval) { | 1280 const base::TimeDelta& interval) { |
| 1291 proxy_->SetAuthoritativeVSyncInterval(interval); | 1281 proxy_->SetAuthoritativeVSyncInterval(interval); |
| 1292 } | 1282 } |
| 1293 | 1283 |
| 1294 void LayerTreeHost::RecordFrameTimingEvents( | 1284 void LayerTreeHost::RecordFrameTimingEvents( |
| 1295 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 1285 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 1296 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) { | 1286 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) { |
| 1297 client_->RecordFrameTimingEvents(std::move(composite_events), | 1287 client_->RecordFrameTimingEvents(std::move(composite_events), |
| 1298 std::move(main_frame_events)); | 1288 std::move(main_frame_events)); |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1665 [seq_num](Layer* layer) { | 1655 [seq_num](Layer* layer) { |
| 1666 layer->set_property_tree_sequence_number(seq_num); | 1656 layer->set_property_tree_sequence_number(seq_num); |
| 1667 }, | 1657 }, |
| 1668 CallFunctionLayerType::ALL_LAYERS); | 1658 CallFunctionLayerType::ALL_LAYERS); |
| 1669 | 1659 |
| 1670 surface_id_namespace_ = proto.surface_id_namespace(); | 1660 surface_id_namespace_ = proto.surface_id_namespace(); |
| 1671 next_surface_sequence_ = proto.next_surface_sequence(); | 1661 next_surface_sequence_ = proto.next_surface_sequence(); |
| 1672 } | 1662 } |
| 1673 | 1663 |
| 1674 } // namespace cc | 1664 } // namespace cc |
| OLD | NEW |