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_impl.h" | 5 #include "cc/trees/layer_tree_impl.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 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2011 ->HasPotentiallyRunningTransformAnimation(layer->id(), list_type); | 2011 ->HasPotentiallyRunningTransformAnimation(layer->id(), list_type); |
2012 } | 2012 } |
2013 | 2013 |
2014 bool LayerTreeImpl::HasAnyAnimationTargetingProperty( | 2014 bool LayerTreeImpl::HasAnyAnimationTargetingProperty( |
2015 const LayerImpl* layer, | 2015 const LayerImpl* layer, |
2016 TargetProperty::Type property) const { | 2016 TargetProperty::Type property) const { |
2017 return layer_tree_host_impl_->animation_host() | 2017 return layer_tree_host_impl_->animation_host() |
2018 ->HasAnyAnimationTargetingProperty(layer->id(), property); | 2018 ->HasAnyAnimationTargetingProperty(layer->id(), property); |
2019 } | 2019 } |
2020 | 2020 |
2021 bool LayerTreeImpl::ScrollOffsetIsAnimatingOnImplOnly( | |
2022 const LayerImpl* layer) const { | |
2023 return layer_tree_host_impl_->animation_host() | |
2024 ->ScrollOffsetIsAnimatingOnImplOnly(layer->id()); | |
2025 } | |
2026 | |
2027 bool LayerTreeImpl::AnimationsPreserveAxisAlignment( | 2021 bool LayerTreeImpl::AnimationsPreserveAxisAlignment( |
2028 const LayerImpl* layer) const { | 2022 const LayerImpl* layer) const { |
2029 return layer_tree_host_impl_->animation_host() | 2023 return layer_tree_host_impl_->animation_host() |
2030 ->AnimationsPreserveAxisAlignment(layer->id()); | 2024 ->AnimationsPreserveAxisAlignment(layer->id()); |
2031 } | 2025 } |
2032 | 2026 |
2033 bool LayerTreeImpl::HasOnlyTranslationTransforms(const LayerImpl* layer) const { | 2027 bool LayerTreeImpl::HasOnlyTranslationTransforms(const LayerImpl* layer) const { |
2034 ElementListType list_type = | 2028 ElementListType list_type = |
2035 IsActiveTree() ? ElementListType::ACTIVE : ElementListType::PENDING; | 2029 IsActiveTree() ? ElementListType::ACTIVE : ElementListType::PENDING; |
2036 return layer_tree_host_impl_->animation_host()->HasOnlyTranslationTransforms( | 2030 return layer_tree_host_impl_->animation_host()->HasOnlyTranslationTransforms( |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2094 } | 2088 } |
2095 | 2089 |
2096 void LayerTreeImpl::ResetAllChangeTracking() { | 2090 void LayerTreeImpl::ResetAllChangeTracking() { |
2097 layers_that_should_push_properties_.clear(); | 2091 layers_that_should_push_properties_.clear(); |
2098 for (auto* layer : *this) | 2092 for (auto* layer : *this) |
2099 layer->ResetChangeTracking(); | 2093 layer->ResetChangeTracking(); |
2100 property_trees_.ResetAllChangeTracking(); | 2094 property_trees_.ResetAllChangeTracking(); |
2101 } | 2095 } |
2102 | 2096 |
2103 } // namespace cc | 2097 } // namespace cc |
OLD | NEW |