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

Issue 2728803002: Handles users rotating screen too early (Closed)

Created:
3 years, 9 months ago by wutao
Modified:
3 years, 9 months ago
Reviewers:
afakhry, oshima, bruthig
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Handles users rotating screen too early If the user rotates screen too early while the previous animation is not finished yet, it will create another |old_layer_tree| with additional layers of previous |old_layer_tree|. The solution is that if there is a new rotation request during rotation animation, it should stop the animation immediately and start the new rotation request. BUG=678763 TEST=manual, unit_tests R=oshima@chromium.org, bruthig@chromium.org Review-Url: https://codereview.chromium.org/2728803002 Cr-Commit-Position: refs/heads/master@{#457946} Committed: https://chromium.googlesource.com/chromium/src/+/6ddafa38e3e8bfc0b856149a6a9366c7b0da80f4

Patch Set 1 #

Total comments: 30

Patch Set 2 : Rebased, reset is_rotating in layerCleanupObserver etc. #

Total comments: 38

Patch Set 3 : Make ScreenRotationAnimator handle its own internal states. #

Total comments: 43

Patch Set 4 : Add MultiLayerAnimatorTestController to controll test animation. #

Total comments: 27

Patch Set 5 : Fixes some nit. #

Total comments: 66

Patch Set 6 : Fixes some more nits. #

Total comments: 20

Patch Set 7 : Patch for commit. #

Patch Set 8 : Rebased to commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+755 lines, -102 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M ash/display/display_configuration_controller.h View 1 2 3 4 5 6 5 chunks +25 lines, -3 lines 0 comments Download
M ash/display/display_configuration_controller.cc View 1 2 3 4 5 6 3 chunks +36 lines, -4 lines 0 comments Download
A ash/display/display_configuration_controller_unittest.cc View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
M ash/rotator/screen_rotation_animator.h View 1 2 3 4 5 6 2 chunks +57 lines, -9 lines 0 comments Download
M ash/rotator/screen_rotation_animator.cc View 1 2 3 4 5 6 9 chunks +160 lines, -74 lines 0 comments Download
A ash/rotator/screen_rotation_animator_observer.h View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A ash/rotator/screen_rotation_animator_unittest.cc View 1 2 3 4 5 6 1 chunk +226 lines, -0 lines 0 comments Download
A ash/rotator/test/screen_rotation_animator_test_api.h View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
A ash/rotator/test/screen_rotation_animator_test_api.cc View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
M ash/test/BUILD.gn View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M ash/test/ash_test_helper.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
A ash/test/display_configuration_controller_test_api.h View 1 2 3 4 5 6 1 chunk +39 lines, -0 lines 0 comments Download
A ash/test/display_configuration_controller_test_api.cc View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
M ash/test/shell_test_api.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ash/test/shell_test_api.cc View 1 2 3 2 chunks +0 lines, -5 lines 0 comments Download
M ui/display/manager/display_manager.h View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M ui/display/manager/display_manager.cc View 1 2 3 4 5 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 65 (43 generated)
wutao
Hi Oshima and Ben, Could you please look at this cl. Thanks, Tao
3 years, 9 months ago (2017-03-01 23:32:26 UTC) #2
bruthig
I took a quick look and have left some actionable comments. I will have to ...
3 years, 9 months ago (2017-03-02 18:25:45 UTC) #7
afakhry
Looked only at display_configuration_controller.cc Will look at more when you do the rebase. https://codereview.chromium.org/2728803002/diff/1/ash/display/display_configuration_controller.cc File ...
3 years, 9 months ago (2017-03-02 19:47:55 UTC) #8
wutao
Hi Ben and Ahmed, Could you please look the new patch again. Thanks, Tao https://codereview.chromium.org/2728803002/diff/1/ash/display/display_configuration_controller.cc ...
3 years, 9 months ago (2017-03-03 02:45:53 UTC) #9
bruthig
Hi Tao, I've left some high level comments and I think there is some opportunities ...
3 years, 9 months ago (2017-03-08 22:35:59 UTC) #14
wutao
Hi Ben, Please have another look of the cl. I feel like we still need ...
3 years, 9 months ago (2017-03-09 22:09:20 UTC) #15
bruthig
Hi Tao, Thanks for addressing all my comments. I've left a few more but I ...
3 years, 9 months ago (2017-03-10 22:34:09 UTC) #20
kylechar
https://codereview.chromium.org/2728803002/diff/40001/ash/display/display_configuration_controller_unittest.cc File ash/display/display_configuration_controller_unittest.cc (right): https://codereview.chromium.org/2728803002/diff/40001/ash/display/display_configuration_controller_unittest.cc#newcode26 ash/display/display_configuration_controller_unittest.cc:26: // TODO(wutao): needs display_configuration_controller. On 2017/03/10 22:34:07, bruthig wrote: ...
3 years, 9 months ago (2017-03-13 14:17:22 UTC) #21
wutao
Hi Ben, Could you please look this cl again. Thanks. Tao https://codereview.chromium.org/2728803002/diff/20001/ash/test/display_configuration_controller_test_api.h File ash/test/display_configuration_controller_test_api.h (right): ...
3 years, 9 months ago (2017-03-14 16:46:38 UTC) #24
bruthig
Hey Mitsuru, Tao, I took a quick look and left some comments. I will circle ...
3 years, 9 months ago (2017-03-15 23:12:38 UTC) #27
wutao
Hi Oshima, Could you please have a look of the new patch as the OWNER. ...
3 years, 9 months ago (2017-03-16 07:38:00 UTC) #28
wutao
https://codereview.chromium.org/2728803002/diff/60001/ash/rotator/screen_rotation_animator_observer.h File ash/rotator/screen_rotation_animator_observer.h (right): https://codereview.chromium.org/2728803002/diff/60001/ash/rotator/screen_rotation_animator_observer.h#newcode12 ash/rotator/screen_rotation_animator_observer.h:12: ScreenRotationAnimatorObserver(){}; On 2017/03/15 23:12:38, bruthig wrote: > nit: I ...
3 years, 9 months ago (2017-03-16 07:40:50 UTC) #32
oshima
https://codereview.chromium.org/2728803002/diff/80001/ash/display/display_configuration_controller.cc File ash/display/display_configuration_controller.cc (right): https://codereview.chromium.org/2728803002/diff/80001/ash/display/display_configuration_controller.cc#newcode184 ash/display/display_configuration_controller.cc:184: bool DisplayConfigurationController::CanAnimateScreenRotation( instead of defining a method here, can ...
3 years, 9 months ago (2017-03-16 20:13:10 UTC) #37
bruthig
https://codereview.chromium.org/2728803002/diff/60001/ash/rotator/screen_rotation_animator.cc File ash/rotator/screen_rotation_animator.cc (right): https://codereview.chromium.org/2728803002/diff/60001/ash/rotator/screen_rotation_animator.cc#newcode323 ash/rotator/screen_rotation_animator.cc:323: Rotate(last_pending_request_->new_rotation, last_pending_request_->source); On 2017/03/16 07:37:59, wutao wrote: > On ...
3 years, 9 months ago (2017-03-16 20:41:58 UTC) #38
wutao
Hi Oshima and Ben, I uploaded another patch. Thanks for the review. Best, Tao https://codereview.chromium.org/2728803002/diff/80001/ash/BUILD.gn ...
3 years, 9 months ago (2017-03-17 00:01:04 UTC) #39
bruthig
One request otherwise lgtm https://codereview.chromium.org/2728803002/diff/100001/ash/rotator/screen_rotation_animator.cc File ash/rotator/screen_rotation_animator.cc (right): https://codereview.chromium.org/2728803002/diff/100001/ash/rotator/screen_rotation_animator.cc#newcode329 ash/rotator/screen_rotation_animator.cc:329: Rotate(last_pending_request_->new_rotation, last_pending_request_->source); Ping on 'I ...
3 years, 9 months ago (2017-03-17 00:38:45 UTC) #42
oshima
can you also update the CL description? It should state what kind of issue this ...
3 years, 9 months ago (2017-03-17 19:42:00 UTC) #45
wutao
Hi Oshima, Could you please look it again. I also updated the description of the ...
3 years, 9 months ago (2017-03-17 20:35:01 UTC) #47
oshima
nit: s/too fast/too early/ lgtm
3 years, 9 months ago (2017-03-17 20:53:44 UTC) #50
wutao
On 2017/03/17 20:53:44, oshima wrote: > nit: s/too fast/too early/ > > lgtm Updated.
3 years, 9 months ago (2017-03-17 21:12:36 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2728803002/140001
3 years, 9 months ago (2017-03-18 03:03:28 UTC) #62
commit-bot: I haz the power
3 years, 9 months ago (2017-03-18 03:12:05 UTC) #65
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/6ddafa38e3e8bfc0b856149a6a93...

Powered by Google App Engine
This is Rietveld 408576698