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

Issue 2870023002: Allow compositor locks to extend timeout. (Closed)

Created:
3 years, 7 months ago by wutao
Modified:
3 years, 7 months ago
Reviewers:
danakj, oshima
CC:
chromium-reviews, Ian Vollick, jbauman+watch_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, cc-bugs_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow compositor locks to extend timeout. Currently compositor lock will set a timeout with the timeout of the first lock request. Incoming future locks will timeout with the same time. Adding a flag to allow compositor locks to extend timeout based on the most future timeout of all the locks when the flag is true. BUG=678763 TEST=CompositorTestWithMockedTime.* && tested in screen rotation animation with wallpaper resize Review-Url: https://codereview.chromium.org/2870023002 Cr-Commit-Position: refs/heads/master@{#470658} Committed: https://chromium.googlesource.com/chromium/src/+/c5cabd63ff5c51e67270774173cc0f66059cf341

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add tests. #

Total comments: 18

Patch Set 3 : Add more scopes for EXPECT_CALL. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -10 lines) Patch
M ui/compositor/compositor.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 chunks +26 lines, -10 lines 0 comments Download
M ui/compositor/compositor_unittest.cc View 1 2 1 chunk +131 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (27 generated)
wutao1
Hi Dana and Oshima, Please take a look. The usage will be: compositor->set_allow_locks_to_extend_timeout(true); SetDisplayRotation(); compositor->set_allow_locks_to_extend_timeout(false); ...
3 years, 7 months ago (2017-05-08 23:09:56 UTC) #2
danakj
LG but can you add some tests? https://codereview.chromium.org/2870023002/diff/1/ui/compositor/compositor.h File ui/compositor/compositor.h (right): https://codereview.chromium.org/2870023002/diff/1/ui/compositor/compositor.h#newcode425 ui/compositor/compositor.h:425: // The ...
3 years, 7 months ago (2017-05-09 15:49:47 UTC) #3
wutao
Hi Dana, ptal. Thanks, Tao
3 years, 7 months ago (2017-05-09 18:02:12 UTC) #6
danakj
Thanks! The tests look good, my feedback about the mock usage is to scope the ...
3 years, 7 months ago (2017-05-09 22:23:20 UTC) #11
wutao
Updated the tests. Hi Oshima, what do you think. Thanks, Tao https://codereview.chromium.org/2870023002/diff/20001/ui/compositor/compositor_unittest.cc File ui/compositor/compositor_unittest.cc (right): ...
3 years, 7 months ago (2017-05-10 00:06:42 UTC) #12
oshima
lgtm
3 years, 7 months ago (2017-05-10 00:23:14 UTC) #15
danakj
LGTM
3 years, 7 months ago (2017-05-10 14:45:27 UTC) #26
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/2870023002/60001
3 years, 7 months ago (2017-05-10 18:35:13 UTC) #33
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 18:54:41 UTC) #36
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c5cabd63ff5c51e67270774173cc...

Powered by Google App Engine
This is Rietveld 408576698