Merge "Fixes flicker of not applying initial transform to leash" into tm-qpr-dev

This commit is contained in:
Louis Chang
2023-04-19 02:57:12 +00:00
committed by Android (Google) Code Review

View File

@@ -220,13 +220,13 @@ class SurfaceAnimationRunner {
if (!mAnimationStartDeferred && mPreProcessingAnimations.isEmpty()) { if (!mAnimationStartDeferred && mPreProcessingAnimations.isEmpty()) {
mChoreographer.postFrameCallback(this::startAnimations); mChoreographer.postFrameCallback(this::startAnimations);
} }
}
// Some animations (e.g. move animations) require the initial transform to be // Some animations (e.g. move animations) require the initial transform to be
// applied immediately. // applied immediately.
applyTransformation(runningAnim, t, 0 /* currentPlayTime */); applyTransformation(runningAnim, t, 0 /* currentPlayTime */);
} }
} }
}
private boolean requiresEdgeExtension(AnimationSpec a) { private boolean requiresEdgeExtension(AnimationSpec a) {
return a.asWindowAnimationSpec() != null && a.asWindowAnimationSpec().hasExtension(); return a.asWindowAnimationSpec() != null && a.asWindowAnimationSpec().hasExtension();