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

Issue 788423002: Add display task to trigger display configuration (Closed)

Created:
6 years ago by dnicoara
Modified:
6 years ago
Reviewers:
Daniel Erat, spang
CC:
chromium-reviews, kalyank, stevenjb+watch_chromium.org, oshima+watch_chromium.org, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@async-refactor3
Project:
chromium
Visibility:
Public.

Description

Add display task to trigger display configuration This CL adds: 1) A DisplayLayoutManager interface which will be implemented within DisplayConfigurator in a followup CL. This is in charge of providing enough information to the task to pick the correct display state. 2) A task that will query to update the display list, pick the correct display state via DisplayLayoutManager then configure the displays via the ConfigureDisplaysTask. 3) Basic unittests to validate the task. These are only basic since the DisplayConfigurator unittests are performing the same tests. Ideally the DisplayLayoutManager code in DisplayConfigurator could be extracted in its own class such that these unittests can re-use that logic. BUG=429746 TBR=spang@chromium.org Committed: https://crrev.com/6c7a24684066c2a9db4212546fe97a180cb240bb Cr-Commit-Position: refs/heads/master@{#308033}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Pass framebuffer size #

Patch Set 4 : . #

Total comments: 5

Patch Set 5 : . #

Patch Set 6 : Remove include in favour of forward declare #

Unified diffs Side-by-side diffs Delta from patch set Stats (+897 lines, -67 lines) Patch
M ui/display/BUILD.gn View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/display/chromeos/display_configurator.h View 1 2 3 4 5 2 chunks +36 lines, -0 lines 0 comments Download
M ui/display/chromeos/display_configurator.cc View 1 2 3 4 4 chunks +5 lines, -67 lines 0 comments Download
A ui/display/chromeos/display_util.h View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A ui/display/chromeos/display_util.cc View 1 2 3 4 1 chunk +71 lines, -0 lines 0 comments Download
M ui/display/chromeos/test/test_native_display_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/chromeos/test/test_native_display_delegate.cc View 1 chunk +11 lines, -0 lines 0 comments Download
A ui/display/chromeos/update_display_configuration_task.h View 1 2 3 4 1 chunk +107 lines, -0 lines 0 comments Download
A ui/display/chromeos/update_display_configuration_task.cc View 1 2 3 4 1 chunk +210 lines, -0 lines 0 comments Download
A ui/display/chromeos/update_display_configuration_task_unittest.cc View 1 2 1 chunk +386 lines, -0 lines 0 comments Download
M ui/display/chromeos/x11/native_display_delegate_x11.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/chromeos/x11/native_display_delegate_x11.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/display/display.gyp View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/display/types/native_display_delegate.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ui/ozone/common/native_display_delegate_ozone.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/common/native_display_delegate_ozone.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/native_display_delegate_dri.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/dri/native_display_delegate_dri.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/native_display_delegate_proxy.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/dri/native_display_delegate_proxy.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
dnicoara
PTAL derat@ for everything spang@ for ui/ozone/*
6 years ago (2014-12-11 01:02:40 UTC) #2
Daniel Erat
Screenshot of my comments since Rietveld is broken. ​ On Wed, Dec 10, 2014 at ...
6 years ago (2014-12-11 22:01:13 UTC) #3
dnicoara
PTAL, I've went and updated it based on your suggestions. https://codereview.chromium.org/788423002/diff/80001/ui/display/chromeos/upda. .. File ui/display/chromeos/update_display_configuration_task.cc (right): ...
6 years ago (2014-12-11 22:27:55 UTC) #4
Daniel Erat
lgtm (still just getting "Details: ApplicationError: 1 Internal error [ApplicationError]" when i try to send ...
6 years ago (2014-12-11 23:30:45 UTC) #5
Daniel Erat
https://codereview.chromium.org/788423002/diff/60001/ui/display/chromeos/display_configurator.h File ui/display/chromeos/display_configurator.h (right): https://codereview.chromium.org/788423002/diff/60001/ui/display/chromeos/display_configurator.h#newcode113 ui/display/chromeos/display_configurator.h:113: // Parses the displays and adds |mirror_mode| and |selected_mode|. ...
6 years ago (2014-12-11 23:34:07 UTC) #6
Daniel Erat
lgtm hooray for rietveld yelling at me for not using the lgtm message after yelling ...
6 years ago (2014-12-11 23:35:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/788423002/100001
6 years ago (2014-12-12 01:50:14 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/29892)
6 years ago (2014-12-12 01:56:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/788423002/100001
6 years ago (2014-12-12 02:27:47 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years ago (2014-12-12 02:38:43 UTC) #14
commit-bot: I haz the power
6 years ago (2014-12-12 02:39:24 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6c7a24684066c2a9db4212546fe97a180cb240bb
Cr-Commit-Position: refs/heads/master@{#308033}

Powered by Google App Engine
This is Rietveld 408576698