| Index: cc/animation/layer_animation_controller.cc
|
| diff --git a/cc/animation/layer_animation_controller.cc b/cc/animation/layer_animation_controller.cc
|
| index f621ad318c4d5470442b842be7fee9ab4eee0333..c08115b1381a5148f5801f6a67e127fb57408e7e 100644
|
| --- a/cc/animation/layer_animation_controller.cc
|
| +++ b/cc/animation/layer_animation_controller.cc
|
| @@ -501,6 +501,21 @@ bool LayerAnimationController::HasOnlyTranslationTransforms() const {
|
| return true;
|
| }
|
|
|
| +bool LayerAnimationController::AnimationsPreserveAxisAlignment() const {
|
| + for (size_t i = 0; i < animations_.size(); ++i) {
|
| + if (animations_[i]->is_finished() ||
|
| + animations_[i]->target_property() != Animation::Transform)
|
| + continue;
|
| +
|
| + const TransformAnimationCurve* transform_animation_curve =
|
| + animations_[i]->curve()->ToTransformAnimationCurve();
|
| + if (!transform_animation_curve->PreservesAxisAlignment())
|
| + return false;
|
| + }
|
| +
|
| + return true;
|
| +}
|
| +
|
| bool LayerAnimationController::MaximumTargetScale(float* max_scale) const {
|
| *max_scale = 0.f;
|
| for (size_t i = 0; i < animations_.size(); ++i) {
|
|
|