Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Issue 1315573003: Snap screen rotation animation layers to final position if the animation is aborted. (Closed)

Created:
5 years, 3 months ago by bruthig
Modified:
5 years, 3 months ago
Reviewers:
oshima
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/ca01f9e55651e4a7285f551e83bd561b01787c19 Cr-Commit-Position: refs/heads/master@{#348734}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added ScreenRotationAnimationTest fixture. #

Total comments: 2

Patch Set 3 : Added // AshTestBase: to override list. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -0 lines) Patch
M ash/ash.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M ash/rotator/screen_rotation_animation.cc View 1 chunk +3 lines, -0 lines 0 comments Download
A ash/rotator/screen_rotation_animation_unittest.cc View 1 2 1 chunk +71 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
bruthig
oshima@: Can you please have a look?
5 years, 3 months ago (2015-09-04 19:45:32 UTC) #2
oshima
https://codereview.chromium.org/1315573003/diff/1/ash/rotator/screen_rotation_animation.cc File ash/rotator/screen_rotation_animation.cc (right): https://codereview.chromium.org/1315573003/diff/1/ash/rotator/screen_rotation_animation.cc#newcode66 ash/rotator/screen_rotation_animation.cc:66: delegate->SetTransformFromAnimation(target_value.transform); Is it possible to have a test for ...
5 years, 3 months ago (2015-09-04 19:50:35 UTC) #3
bruthig
I've added a test. oshima@: PTAL https://codereview.chromium.org/1315573003/diff/1/ash/rotator/screen_rotation_animation.cc File ash/rotator/screen_rotation_animation.cc (right): https://codereview.chromium.org/1315573003/diff/1/ash/rotator/screen_rotation_animation.cc#newcode66 ash/rotator/screen_rotation_animation.cc:66: delegate->SetTransformFromAnimation(target_value.transform); On 2015/09/04 ...
5 years, 3 months ago (2015-09-14 20:14:12 UTC) #4
oshima
lgtm Assuming you have confirmed that the test fails without this fix. https://codereview.chromium.org/1315573003/diff/20001/ash/rotator/screen_rotation_animation_unittest.cc File ash/rotator/screen_rotation_animation_unittest.cc ...
5 years, 3 months ago (2015-09-14 20:45:48 UTC) #5
bruthig
https://codereview.chromium.org/1315573003/diff/20001/ash/rotator/screen_rotation_animation_unittest.cc File ash/rotator/screen_rotation_animation_unittest.cc (right): https://codereview.chromium.org/1315573003/diff/20001/ash/rotator/screen_rotation_animation_unittest.cc#newcode26 ash/rotator/screen_rotation_animation_unittest.cc:26: On 2015/09/14 20:45:48, oshima wrote: > nit: // AshTestBase: ...
5 years, 3 months ago (2015-09-14 20:50:39 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1315573003/20002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1315573003/20002
5 years, 3 months ago (2015-09-14 20:54:26 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:20002)
5 years, 3 months ago (2015-09-14 21:58:57 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/ca01f9e55651e4a7285f551e83bd561b01787c19 Cr-Commit-Position: refs/heads/master@{#348734}
5 years, 3 months ago (2015-09-14 22:00:14 UTC) #13
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:37:51 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ca01f9e55651e4a7285f551e83bd561b01787c19
Cr-Commit-Position: refs/heads/master@{#348734}

Powered by Google App Engine
This is Rietveld 408576698