| 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 1996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2007 ->HasPotentiallyRunningTransformAnimation(layer->id(), list_type); | 2007 ->HasPotentiallyRunningTransformAnimation(layer->id(), list_type); |
| 2008 } | 2008 } |
| 2009 | 2009 |
| 2010 bool LayerTreeImpl::HasAnyAnimationTargetingProperty( | 2010 bool LayerTreeImpl::HasAnyAnimationTargetingProperty( |
| 2011 const LayerImpl* layer, | 2011 const LayerImpl* layer, |
| 2012 TargetProperty::Type property) const { | 2012 TargetProperty::Type property) const { |
| 2013 return layer_tree_host_impl_->animation_host() | 2013 return layer_tree_host_impl_->animation_host() |
| 2014 ->HasAnyAnimationTargetingProperty(layer->id(), property); | 2014 ->HasAnyAnimationTargetingProperty(layer->id(), property); |
| 2015 } | 2015 } |
| 2016 | 2016 |
| 2017 bool LayerTreeImpl::FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const { | |
| 2018 return layer_tree_host_impl_->animation_host()->FilterIsAnimatingOnImplOnly( | |
| 2019 layer->id()); | |
| 2020 } | |
| 2021 | |
| 2022 bool LayerTreeImpl::OpacityIsAnimatingOnImplOnly(const LayerImpl* layer) const { | |
| 2023 return layer_tree_host_impl_->animation_host()->OpacityIsAnimatingOnImplOnly( | |
| 2024 layer->id()); | |
| 2025 } | |
| 2026 | |
| 2027 bool LayerTreeImpl::ScrollOffsetIsAnimatingOnImplOnly( | 2017 bool LayerTreeImpl::ScrollOffsetIsAnimatingOnImplOnly( |
| 2028 const LayerImpl* layer) const { | 2018 const LayerImpl* layer) const { |
| 2029 return layer_tree_host_impl_->animation_host() | 2019 return layer_tree_host_impl_->animation_host() |
| 2030 ->ScrollOffsetIsAnimatingOnImplOnly(layer->id()); | 2020 ->ScrollOffsetIsAnimatingOnImplOnly(layer->id()); |
| 2031 } | 2021 } |
| 2032 | 2022 |
| 2033 bool LayerTreeImpl::TransformIsAnimatingOnImplOnly( | |
| 2034 const LayerImpl* layer) const { | |
| 2035 return layer_tree_host_impl_->animation_host() | |
| 2036 ->TransformIsAnimatingOnImplOnly(layer->id()); | |
| 2037 } | |
| 2038 | |
| 2039 bool LayerTreeImpl::AnimationsPreserveAxisAlignment( | 2023 bool LayerTreeImpl::AnimationsPreserveAxisAlignment( |
| 2040 const LayerImpl* layer) const { | 2024 const LayerImpl* layer) const { |
| 2041 return layer_tree_host_impl_->animation_host() | 2025 return layer_tree_host_impl_->animation_host() |
| 2042 ->AnimationsPreserveAxisAlignment(layer->id()); | 2026 ->AnimationsPreserveAxisAlignment(layer->id()); |
| 2043 } | 2027 } |
| 2044 | 2028 |
| 2045 bool LayerTreeImpl::HasOnlyTranslationTransforms(const LayerImpl* layer) const { | 2029 bool LayerTreeImpl::HasOnlyTranslationTransforms(const LayerImpl* layer) const { |
| 2046 ElementListType list_type = | 2030 ElementListType list_type = |
| 2047 IsActiveTree() ? ElementListType::ACTIVE : ElementListType::PENDING; | 2031 IsActiveTree() ? ElementListType::ACTIVE : ElementListType::PENDING; |
| 2048 return layer_tree_host_impl_->animation_host()->HasOnlyTranslationTransforms( | 2032 return layer_tree_host_impl_->animation_host()->HasOnlyTranslationTransforms( |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2106 } | 2090 } |
| 2107 | 2091 |
| 2108 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) { | 2092 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) { |
| 2109 layers_that_should_push_properties_.clear(); | 2093 layers_that_should_push_properties_.clear(); |
| 2110 for (auto* layer : *this) | 2094 for (auto* layer : *this) |
| 2111 layer->ResetChangeTracking(); | 2095 layer->ResetChangeTracking(); |
| 2112 property_trees_.ResetAllChangeTracking(flag); | 2096 property_trees_.ResetAllChangeTracking(flag); |
| 2113 } | 2097 } |
| 2114 | 2098 |
| 2115 } // namespace cc | 2099 } // namespace cc |
| OLD | NEW |