| 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 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1275 proxy_->SetAuthoritativeVSyncInterval(interval); | 1275 proxy_->SetAuthoritativeVSyncInterval(interval); |
| 1276 } | 1276 } |
| 1277 | 1277 |
| 1278 void LayerTreeHost::RecordFrameTimingEvents( | 1278 void LayerTreeHost::RecordFrameTimingEvents( |
| 1279 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 1279 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
| 1280 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) { | 1280 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) { |
| 1281 client_->RecordFrameTimingEvents(std::move(composite_events), | 1281 client_->RecordFrameTimingEvents(std::move(composite_events), |
| 1282 std::move(main_frame_events)); | 1282 std::move(main_frame_events)); |
| 1283 } | 1283 } |
| 1284 | 1284 |
| 1285 void LayerTreeHost::SetLayerTreeMutator( |
| 1286 std::unique_ptr<LayerTreeMutator> mutator) { |
| 1287 proxy_->SetMutator(std::move(mutator)); |
| 1288 } |
| 1289 |
| 1285 Layer* LayerTreeHost::LayerById(int id) const { | 1290 Layer* LayerTreeHost::LayerById(int id) const { |
| 1286 LayerIdMap::const_iterator iter = layer_id_map_.find(id); | 1291 LayerIdMap::const_iterator iter = layer_id_map_.find(id); |
| 1287 return iter != layer_id_map_.end() ? iter->second : NULL; | 1292 return iter != layer_id_map_.end() ? iter->second : NULL; |
| 1288 } | 1293 } |
| 1289 | 1294 |
| 1290 void LayerTreeHost::AddLayerShouldPushProperties(Layer* layer) { | 1295 void LayerTreeHost::AddLayerShouldPushProperties(Layer* layer) { |
| 1291 layers_that_should_push_properties_.insert(layer); | 1296 layers_that_should_push_properties_.insert(layer); |
| 1292 } | 1297 } |
| 1293 | 1298 |
| 1294 void LayerTreeHost::RemoveLayerShouldPushProperties(Layer* layer) { | 1299 void LayerTreeHost::RemoveLayerShouldPushProperties(Layer* layer) { |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1649 [seq_num](Layer* layer) { | 1654 [seq_num](Layer* layer) { |
| 1650 layer->set_property_tree_sequence_number(seq_num); | 1655 layer->set_property_tree_sequence_number(seq_num); |
| 1651 }, | 1656 }, |
| 1652 CallFunctionLayerType::ALL_LAYERS); | 1657 CallFunctionLayerType::ALL_LAYERS); |
| 1653 | 1658 |
| 1654 surface_id_namespace_ = proto.surface_id_namespace(); | 1659 surface_id_namespace_ = proto.surface_id_namespace(); |
| 1655 next_surface_sequence_ = proto.next_surface_sequence(); | 1660 next_surface_sequence_ = proto.next_surface_sequence(); |
| 1656 } | 1661 } |
| 1657 | 1662 |
| 1658 } // namespace cc | 1663 } // namespace cc |
| OLD | NEW |