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

Issue 801493002: Update DisplayConfigurator to use the asynchronous tasks (Closed)

Created:
6 years ago by dnicoara
Modified:
6 years ago
Reviewers:
Daniel Erat
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@async-refactor4
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update DisplayConfigurator to use the asynchronous tasks Now DisplayConfigurator can take advantage of asynchronous configuration APIs. Note: For X11, NativeDisplayDelegate is still implemented via synchronous calls so all configurations will be synchronous on X11. Notable changes: 1) EnterState(), UpdateCachedDisplays() and FindMirrorMode() have been moved into the DisplayLayoutManager implementation. 2) NativeDisplayDelegate's initialization has been moved before grabbing the server. Shouldn't cause any issues since the server doesn't need to be grabbed when initializing NDD. BUG=429746 TEST=display_unittests and manually on Link with X11 Committed: https://crrev.com/7547705543d6b711a166e513a43a4e43f93fd254 Cr-Commit-Position: refs/heads/master@{#308175}

Patch Set 1 #

Patch Set 2 : Updated #

Total comments: 20

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+572 lines, -568 lines) Patch
M ui/display/chromeos/display_configurator.h View 1 2 3 10 chunks +52 lines, -49 lines 0 comments Download
M ui/display/chromeos/display_configurator.cc View 1 2 9 chunks +447 lines, -437 lines 0 comments Download
M ui/display/chromeos/display_configurator_unittest.cc View 14 chunks +73 lines, -82 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
dnicoara
Depends on https://codereview.chromium.org/788423002/ PTAL. This CL adds the last bits needed to asynchronously configure displays.
6 years ago (2014-12-11 20:51:52 UTC) #2
Daniel Erat
to make this a bit easier to review, could you provide some quick notes about ...
6 years ago (2014-12-11 23:15:54 UTC) #3
dnicoara
On 2014/12/11 23:15:54, Daniel Erat wrote: > to make this a bit easier to review, ...
6 years ago (2014-12-12 01:45:36 UTC) #4
Daniel Erat
thanks. some comments but i'm generally happier with this approach. :-) https://codereview.chromium.org/801493002/diff/20001/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): ...
6 years ago (2014-12-12 16:25:29 UTC) #5
dnicoara
Thanks, I've updated the CL. https://codereview.chromium.org/801493002/diff/20001/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): https://codereview.chromium.org/801493002/diff/20001/ui/display/chromeos/display_configurator.cc#newcode85 ui/display/chromeos/display_configurator.cc:85: // mode wasn't found ...
6 years ago (2014-12-12 17:45:09 UTC) #6
Daniel Erat
lgtm https://codereview.chromium.org/801493002/diff/40001/ui/display/chromeos/display_configurator.h File ui/display/chromeos/display_configurator.h (right): https://codereview.chromium.org/801493002/diff/40001/ui/display/chromeos/display_configurator.h#newcode320 ui/display/chromeos/display_configurator.h:320: // If |configuration_task_| isn't initialized, initialize it and ...
6 years ago (2014-12-12 20:36:30 UTC) #7
dnicoara
https://codereview.chromium.org/801493002/diff/40001/ui/display/chromeos/display_configurator.h File ui/display/chromeos/display_configurator.h (right): https://codereview.chromium.org/801493002/diff/40001/ui/display/chromeos/display_configurator.h#newcode320 ui/display/chromeos/display_configurator.h:320: // If |configuration_task_| isn't initialized, initialize it and start ...
6 years ago (2014-12-12 20:56:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/801493002/60001
6 years ago (2014-12-12 21:25:23 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years ago (2014-12-12 22:00:49 UTC) #11
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/7547705543d6b711a166e513a43a4e43f93fd254 Cr-Commit-Position: refs/heads/master@{#308175}
6 years ago (2014-12-12 22:02:23 UTC) #12
samuong
6 years ago (2014-12-12 23:45:34 UTC) #13
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/797383002/ by samuong@chromium.org.

The reason for reverting is: seems to be causing problems in display_unittests
on the following bot:
https://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%2....

Powered by Google App Engine
This is Rietveld 408576698