| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 5 #ifndef CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
| 6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 bool HasAnimationThatInflatesBounds() const { | 139 bool HasAnimationThatInflatesBounds() const { |
| 140 return HasTransformAnimationThatInflatesBounds() || | 140 return HasTransformAnimationThatInflatesBounds() || |
| 141 HasFilterAnimationThatInflatesBounds(); | 141 HasFilterAnimationThatInflatesBounds(); |
| 142 } | 142 } |
| 143 | 143 |
| 144 bool FilterAnimationBoundsForBox(const gfx::BoxF& box, | 144 bool FilterAnimationBoundsForBox(const gfx::BoxF& box, |
| 145 gfx::BoxF* bounds) const; | 145 gfx::BoxF* bounds) const; |
| 146 bool TransformAnimationBoundsForBox(const gfx::BoxF& box, | 146 bool TransformAnimationBoundsForBox(const gfx::BoxF& box, |
| 147 gfx::BoxF* bounds) const; | 147 gfx::BoxF* bounds) const; |
| 148 | 148 |
| 149 bool HasAnimationThatAffectsScale() const; | |
| 150 | |
| 151 bool HasOnlyTranslationTransforms(ElementListType list_type) const; | 149 bool HasOnlyTranslationTransforms(ElementListType list_type) const; |
| 152 | 150 |
| 153 bool AnimationsPreserveAxisAlignment() const; | 151 bool AnimationsPreserveAxisAlignment() const; |
| 154 | 152 |
| 155 // Sets |start_scale| to the maximum of starting animation scale along any | 153 // Sets |start_scale| to the maximum of starting animation scale along any |
| 156 // dimension at any destination in active animations. Returns false if the | 154 // dimension at any destination in active animations. Returns false if the |
| 157 // starting scale cannot be computed. | 155 // starting scale cannot be computed. |
| 158 bool AnimationStartScale(ElementListType list_type, float* start_scale) const; | 156 bool AnimationStartScale(ElementListType list_type, float* start_scale) const; |
| 159 | 157 |
| 160 // Sets |max_scale| to the maximum scale along any dimension at any | 158 // Sets |max_scale| to the maximum scale along any dimension at any |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 bool needs_update_impl_client_state_transform_ : 1; | 266 bool needs_update_impl_client_state_transform_ : 1; |
| 269 bool needs_update_impl_client_state_opacity_ : 1; | 267 bool needs_update_impl_client_state_opacity_ : 1; |
| 270 bool needs_update_impl_client_state_filter_ : 1; | 268 bool needs_update_impl_client_state_filter_ : 1; |
| 271 | 269 |
| 272 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); | 270 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); |
| 273 }; | 271 }; |
| 274 | 272 |
| 275 } // namespace cc | 273 } // namespace cc |
| 276 | 274 |
| 277 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 275 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
| OLD | NEW |