Snap screen rotation animation layers to final position if the animation is aborted.
commitca01f9e55651e4a7285f551e83bd561b01787c19
authorbruthig <bruthig@chromium.org>
Mon, 14 Sep 2015 21:58:44 +0000 (14 14:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 14 Sep 2015 22:00:05 +0000 (14 22:00 +0000)
tree362e88a07a0a911fbec78e608d5185a51a2bd19b
parent0c3b55f4e76aafab2ae737964abebca30b23029b
Snap screen rotation animation layers to final position if the animation is aborted.

Some users were seeing incorrectly aligned and rotated backgrounds while
at the lock screen.  It was possible that the session state animations
were aborting the screen rotation animations prematurely and thus they
would get stuck in a bad position.

TEST=ScreenRotationAnimationTest.LayerTransformGetsSetToTargetWhenAborted

BUG=496986

Review URL: https://codereview.chromium.org/1315573003

Cr-Commit-Position: refs/heads/master@{#348734}
ash/ash.gyp
ash/rotator/screen_rotation_animation.cc
ash/rotator/screen_rotation_animation_unittest.cc [new file with mode: 0644]