| 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_ANIMATION_PLAYER_H_ | 5 #ifndef CC_ANIMATION_ANIMATION_PLAYER_H_ |
| 6 #define CC_ANIMATION_ANIMATION_PLAYER_H_ | 6 #define CC_ANIMATION_ANIMATION_PLAYER_H_ |
| 7 | 7 |
| 8 #include <bitset> | 8 #include <bitset> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // are deleted. | 112 // are deleted. |
| 113 void ActivateAnimations(bool* changed_transform_animation, | 113 void ActivateAnimations(bool* changed_transform_animation, |
| 114 bool* changed_opacity_animation, | 114 bool* changed_opacity_animation, |
| 115 bool* changed_filter_animation); | 115 bool* changed_filter_animation); |
| 116 | 116 |
| 117 bool HasFilterAnimationThatInflatesBounds() const; | 117 bool HasFilterAnimationThatInflatesBounds() const; |
| 118 bool HasTransformAnimationThatInflatesBounds() const; | 118 bool HasTransformAnimationThatInflatesBounds() const; |
| 119 | 119 |
| 120 bool TransformAnimationBoundsForBox(const gfx::BoxF& box, | 120 bool TransformAnimationBoundsForBox(const gfx::BoxF& box, |
| 121 gfx::BoxF* bounds) const; | 121 gfx::BoxF* bounds) const; |
| 122 bool HasAnimationThatAffectsScale() const; | |
| 123 bool HasOnlyTranslationTransforms(ElementListType list_type) const; | 122 bool HasOnlyTranslationTransforms(ElementListType list_type) const; |
| 124 bool AnimationsPreserveAxisAlignment() const; | 123 bool AnimationsPreserveAxisAlignment() const; |
| 125 | 124 |
| 126 // Sets |start_scale| to the maximum of starting animation scale along any | 125 // Sets |start_scale| to the maximum of starting animation scale along any |
| 127 // dimension at any destination in active animations. Returns false if the | 126 // dimension at any destination in active animations. Returns false if the |
| 128 // starting scale cannot be computed. | 127 // starting scale cannot be computed. |
| 129 bool AnimationStartScale(ElementListType list_type, float* start_scale) const; | 128 bool AnimationStartScale(ElementListType list_type, float* start_scale) const; |
| 130 | 129 |
| 131 // Sets |max_scale| to the maximum scale along any dimension at any | 130 // Sets |max_scale| to the maximum scale along any dimension at any |
| 132 // destination in active animations. Returns false if the maximum scale cannot | 131 // destination in active animations. Returns false if the maximum scale cannot |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // Only try to start animations when new animations are added or when the | 198 // Only try to start animations when new animations are added or when the |
| 200 // previous attempt at starting animations failed to start all animations. | 199 // previous attempt at starting animations failed to start all animations. |
| 201 bool needs_to_start_animations_; | 200 bool needs_to_start_animations_; |
| 202 | 201 |
| 203 DISALLOW_COPY_AND_ASSIGN(AnimationPlayer); | 202 DISALLOW_COPY_AND_ASSIGN(AnimationPlayer); |
| 204 }; | 203 }; |
| 205 | 204 |
| 206 } // namespace cc | 205 } // namespace cc |
| 207 | 206 |
| 208 #endif // CC_ANIMATION_ANIMATION_PLAYER_H_ | 207 #endif // CC_ANIMATION_ANIMATION_PLAYER_H_ |
| OLD | NEW |