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

Issue 2910413002: cros: Do not cache |root_window| in ScreenRotationAnimator. (Closed)

Created:
3 years, 6 months ago by wutao
Modified:
3 years, 6 months ago
Reviewers:
oshima
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Do not cache |root_window| in ScreenRotationAnimator. When removing a display the |root_window| might change. The cache does not work in this situation. BUG=728029 TEST=manual and ScreenRotationAnimatorSmoothAnimationTest.* Review-Url: https://codereview.chromium.org/2910413002 Cr-Commit-Position: refs/heads/master@{#476723} Committed: https://chromium.googlesource.com/chromium/src/+/c18f66cce628e31fbde34fa521e526fafeab4839

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase and revert patch 1. #

Patch Set 3 : Tie ScreenRotationAnimator to |root_window|. #

Total comments: 8

Patch Set 4 : Remove IsDisplayValid check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -132 lines) Patch
M ash/display/display_configuration_controller.h View 1 2 2 chunks +4 lines, -11 lines 0 comments Download
M ash/display/display_configuration_controller.cc View 1 2 3 3 chunks +25 lines, -9 lines 0 comments Download
M ash/display/display_configuration_controller_unittest.cc View 1 2 3 1 chunk +5 lines, -7 lines 0 comments Download
M ash/rotator/screen_rotation_animator.h View 1 2 3 6 chunks +18 lines, -18 lines 0 comments Download
M ash/rotator/screen_rotation_animator.cc View 1 2 3 15 chunks +45 lines, -39 lines 0 comments Download
M ash/rotator/screen_rotation_animator_unittest.cc View 1 2 3 17 chunks +81 lines, -40 lines 0 comments Download
M ash/test/display_configuration_controller_test_api.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/test/display_configuration_controller_test_api.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M testing/buildbot/filters/ash_unittests_mash.filter View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M testing/buildbot/filters/ash_unittests_mus.filter View 1 2 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
wutao
Hi Oshima, Please have a look. Also added a test. Thanks. Tao
3 years, 6 months ago (2017-05-31 07:18:50 UTC) #2
oshima
https://codereview.chromium.org/2910413002/diff/1/ash/rotator/screen_rotation_animator.cc File ash/rotator/screen_rotation_animator.cc (right): https://codereview.chromium.org/2910413002/diff/1/ash/rotator/screen_rotation_animator.cc#newcode328 ash/rotator/screen_rotation_animator.cc:328: if (!root_window->layer()->Contains(old_layer_tree_owner_->root())) { Hmm, I probably made a bad ...
3 years, 6 months ago (2017-05-31 22:37:58 UTC) #7
wutao
On 2017/05/31 22:37:58, oshima wrote: > https://codereview.chromium.org/2910413002/diff/1/ash/rotator/screen_rotation_animator.cc > File ash/rotator/screen_rotation_animator.cc (right): > > https://codereview.chromium.org/2910413002/diff/1/ash/rotator/screen_rotation_animator.cc#newcode328 > ...
3 years, 6 months ago (2017-06-01 07:59:25 UTC) #8
wutao
Hi Oshima, Please have a look. Thank you, Tao
3 years, 6 months ago (2017-06-01 07:59:55 UTC) #9
oshima
https://codereview.chromium.org/2910413002/diff/40001/ash/rotator/screen_rotation_animator.cc File ash/rotator/screen_rotation_animator.cc (right): https://codereview.chromium.org/2910413002/diff/40001/ash/rotator/screen_rotation_animator.cc#newcode278 ash/rotator/screen_rotation_animator.cc:278: if (!IsDisplayIdValid(rotation_request->display_id) || you should be able t remove ...
3 years, 6 months ago (2017-06-01 15:55:00 UTC) #14
wutao
On 2017/06/01 15:55:00, oshima wrote: > https://codereview.chromium.org/2910413002/diff/40001/ash/rotator/screen_rotation_animator.cc > File ash/rotator/screen_rotation_animator.cc (right): > > https://codereview.chromium.org/2910413002/diff/40001/ash/rotator/screen_rotation_animator.cc#newcode278 > ...
3 years, 6 months ago (2017-06-01 18:18:47 UTC) #15
wutao
Hi Oshima, Please take another look. Thank you, Tao https://codereview.chromium.org/2910413002/diff/40001/ash/rotator/screen_rotation_animator.cc File ash/rotator/screen_rotation_animator.cc (right): https://codereview.chromium.org/2910413002/diff/40001/ash/rotator/screen_rotation_animator.cc#newcode278 ash/rotator/screen_rotation_animator.cc:278: ...
3 years, 6 months ago (2017-06-01 22:48:04 UTC) #16
oshima
lgtm
3 years, 6 months ago (2017-06-02 16:13:43 UTC) #17
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/2910413002/60001
3 years, 6 months ago (2017-06-02 18:05:21 UTC) #23
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 18:11:13 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c18f66cce628e31fbde34fa521e5...

Powered by Google App Engine
This is Rietveld 408576698