| 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 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1381 bool LayerTreeHost::AnimationStartScale(const Layer* layer, | 1381 bool LayerTreeHost::AnimationStartScale(const Layer* layer, |
| 1382 float* start_scale) const { | 1382 float* start_scale) const { |
| 1383 return animation_host_ | 1383 return animation_host_ |
| 1384 ? animation_host_->AnimationStartScale( | 1384 ? animation_host_->AnimationStartScale( |
| 1385 layer->id(), LayerTreeType::ACTIVE, start_scale) | 1385 layer->id(), LayerTreeType::ACTIVE, start_scale) |
| 1386 : false; | 1386 : false; |
| 1387 } | 1387 } |
| 1388 | 1388 |
| 1389 bool LayerTreeHost::HasAnyAnimationTargetingProperty( | 1389 bool LayerTreeHost::HasAnyAnimationTargetingProperty( |
| 1390 const Layer* layer, | 1390 const Layer* layer, |
| 1391 Animation::TargetProperty property) const { | 1391 TargetProperty::Type property) const { |
| 1392 return animation_host_ | 1392 return animation_host_ |
| 1393 ? animation_host_->HasAnyAnimationTargetingProperty(layer->id(), | 1393 ? animation_host_->HasAnyAnimationTargetingProperty(layer->id(), |
| 1394 property) | 1394 property) |
| 1395 : false; | 1395 : false; |
| 1396 } | 1396 } |
| 1397 | 1397 |
| 1398 bool LayerTreeHost::AnimationsPreserveAxisAlignment(const Layer* layer) const { | 1398 bool LayerTreeHost::AnimationsPreserveAxisAlignment(const Layer* layer) const { |
| 1399 return animation_host_ | 1399 return animation_host_ |
| 1400 ? animation_host_->AnimationsPreserveAxisAlignment(layer->id()) | 1400 ? animation_host_->AnimationsPreserveAxisAlignment(layer->id()) |
| 1401 : true; | 1401 : true; |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1592 LayerTreeHostCommon::CallFunctionForSubtree( | 1592 LayerTreeHostCommon::CallFunctionForSubtree( |
| 1593 root_layer(), [seq_num](Layer* layer) { | 1593 root_layer(), [seq_num](Layer* layer) { |
| 1594 layer->set_property_tree_sequence_number(seq_num); | 1594 layer->set_property_tree_sequence_number(seq_num); |
| 1595 }); | 1595 }); |
| 1596 | 1596 |
| 1597 surface_id_namespace_ = proto.surface_id_namespace(); | 1597 surface_id_namespace_ = proto.surface_id_namespace(); |
| 1598 next_surface_sequence_ = proto.next_surface_sequence(); | 1598 next_surface_sequence_ = proto.next_surface_sequence(); |
| 1599 } | 1599 } |
| 1600 | 1600 |
| 1601 } // namespace cc | 1601 } // namespace cc |
| OLD | NEW |