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

Issue 2816683002: Handle new screen rotation request while waiting for the copy request callback. (Closed)

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

Description

Handle new screen rotation request while waiting for the copy request callback. If there is a new screen rotation request while it is waiting for the layer copy result, we should process the new rotation request and ignore the previous layer copy result. BUG=678763 TEST=Manual Review-Url: https://codereview.chromium.org/2816683002 Cr-Commit-Position: refs/heads/master@{#464508} Committed: https://chromium.googlesource.com/chromium/src/+/88733dff81ecec04786aaee3cf48f4bcd776cd80

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fix for the comments in patch 1. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -14 lines) Patch
M ash/rotator/screen_rotation_animator.h View 2 chunks +8 lines, -2 lines 2 comments Download
M ash/rotator/screen_rotation_animator.cc View 1 7 chunks +16 lines, -12 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
wutao
Hi Oshima, Would you please have a look this approach to handle the copy request. ...
3 years, 8 months ago (2017-04-12 06:32:27 UTC) #2
wutao
Hi Oshima, Friendly ping. Tao
3 years, 8 months ago (2017-04-13 16:45:59 UTC) #3
oshima
https://codereview.chromium.org/2816683002/diff/1/ash/rotator/screen_rotation_animator.cc File ash/rotator/screen_rotation_animator.cc (right): https://codereview.chromium.org/2816683002/diff/1/ash/rotator/screen_rotation_animator.cc#newcode247 ash/rotator/screen_rotation_animator.cc:247: if (rotation_request->id != rotation_request_id_) { it's probably better to ...
3 years, 8 months ago (2017-04-13 17:24:41 UTC) #4
wutao
Hi Oshima, Fixed as suggested. Thank you, Tao https://codereview.chromium.org/2816683002/diff/1/ash/rotator/screen_rotation_animator.cc File ash/rotator/screen_rotation_animator.cc (right): https://codereview.chromium.org/2816683002/diff/1/ash/rotator/screen_rotation_animator.cc#newcode247 ash/rotator/screen_rotation_animator.cc:247: if ...
3 years, 8 months ago (2017-04-13 17:51:12 UTC) #5
oshima
lgtm https://codereview.chromium.org/2816683002/diff/20001/ash/rotator/screen_rotation_animator.h File ash/rotator/screen_rotation_animator.h (right): https://codereview.chromium.org/2816683002/diff/20001/ash/rotator/screen_rotation_animator.h#newcode130 ash/rotator/screen_rotation_animator.h:130: int64_t rotation_request_id_; = 0
3 years, 8 months ago (2017-04-13 18:18:24 UTC) #6
wutao
https://codereview.chromium.org/2816683002/diff/20001/ash/rotator/screen_rotation_animator.h File ash/rotator/screen_rotation_animator.h (right): https://codereview.chromium.org/2816683002/diff/20001/ash/rotator/screen_rotation_animator.h#newcode130 ash/rotator/screen_rotation_animator.h:130: int64_t rotation_request_id_; On 2017/04/13 18:18:24, oshima wrote: > = ...
3 years, 8 months ago (2017-04-13 18:54:30 UTC) #9
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/2816683002/20001
3 years, 8 months ago (2017-04-13 19:31:35 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 19:40:05 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/88733dff81ecec04786aaee3cf48...

Powered by Google App Engine
This is Rietveld 408576698