Fix reversal of a composited animation with a start delay
CompositorAnimations::ConvertTimingForCompositor does not take the play direction into account when adjusting the time offset for the start delay. Note that a similar trick might work for end delays; however, deferring to a separate CL given the comment: // FIXME: Compositor does not know anything about endDelay. which suggests that other CC changes may be required to accommodate end delays properly. Difference between composited and main thread animation can be observed in the following CodePen without the patch. https://codepen.io/kevers-google/pen/NWNPGRg Bug: 1095813 Change-Id: I3d5d09618f6e58795bc527c18bc6deabe9abed13 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2339712Reviewed-by:Xida Chen <xidachen@chromium.org> Commit-Queue: Kevin Ellis <kevers@chromium.org> Cr-Commit-Position: refs/heads/master@{#795569}
Showing
Please register or sign in to comment