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

Issue 1456623002: Add support for virtual displays (Closed)

Created:
5 years, 1 month ago by robert.bradford
Modified:
5 years ago
Reviewers:
jdufault, *oshima, achuithb
CC:
chromium-reviews, kalyank, sadrul, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for virtual displays This CL allows the programmatic additional and removal of a virtual display for the purposes of both multiple display testing and to allow extending the the workspace for capture with e.g. Chrome Cast. BUG=425060 TEST=New tests added to DisplayConfiguratorTest. Interactive testing when combined with CL to enable controls for virtual display in display settings. Committed: https://crrev.com/3d88a677ef10af9780edef84ccde79b32de51cb6 Cr-Commit-Position: refs/heads/master@{#364332}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix test (removing need for friend on DisplayConfigurator) #

Total comments: 26

Patch Set 3 : Address oshima@ feedback #

Total comments: 10

Patch Set 4 : Integrate latest review feedback #

Total comments: 1

Patch Set 5 : Use std::max as suggested by oshima@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -34 lines) Patch
M ash/ash_strings.grd View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ash/display/display_change_observer_chromeos.cc View 1 chunk +12 lines, -4 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/display/BUILD.gn View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M ui/display/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/chromeos/apply_content_protection_task.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/chromeos/configure_displays_task.cc View 2 chunks +10 lines, -3 lines 0 comments Download
M ui/display/chromeos/display_configurator.h View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
M ui/display/chromeos/display_configurator.cc View 1 2 3 4 7 chunks +61 lines, -2 lines 0 comments Download
M ui/display/chromeos/display_configurator_unittest.cc View 1 2 3 3 chunks +162 lines, -8 lines 0 comments Download
A ui/display/chromeos/display_snapshot_virtual.h View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A ui/display/chromeos/display_snapshot_virtual.cc View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
M ui/display/chromeos/display_util.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/display/chromeos/display_util.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M ui/display/chromeos/query_content_protection_task.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/chromeos/update_display_configuration_task.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M ui/display/chromeos/update_display_configuration_task.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/display/display.gyp View 2 chunks +3 lines, -0 lines 0 comments Download
M ui/display/types/display_constants.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/display/util/display_util.h View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M ui/display/util/display_util.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M ui/display/util/edid_parser.cc View 1 2 3 2 chunks +3 lines, -16 lines 0 comments Download

Messages

Total messages: 25 (10 generated)
robert.bradford
jdufault@ would be cool if you could take a look before I ask oshima@ for ...
5 years, 1 month ago (2015-11-17 16:44:37 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456623002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456623002/1
5 years, 1 month ago (2015-11-17 19:30:00 UTC) #4
jdufault
Generally looks good, but I'm not very familiar with the code here. Let's see what ...
5 years, 1 month ago (2015-11-17 20:10:21 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-17 20:21:43 UTC) #7
robert.bradford
+oshima@ for OWNERS review Thanks jdufault@! https://codereview.chromium.org/1456623002/diff/1/ui/display/chromeos/display_configurator_unittest.cc File ui/display/chromeos/display_configurator_unittest.cc (right): https://codereview.chromium.org/1456623002/diff/1/ui/display/chromeos/display_configurator_unittest.cc#newcode398 ui/display/chromeos/display_configurator_unittest.cc:398: const DisplayConfigurator::DisplayStateList* cached ...
5 years, 1 month ago (2015-11-18 12:46:10 UTC) #10
oshima
https://codereview.chromium.org/1456623002/diff/20001/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): https://codereview.chromium.org/1456623002/diff/20001/ui/display/chromeos/display_configurator.cc#newcode665 ui/display/chromeos/display_configurator.cc:665: // Exclude virtual displays. I believe this is not ...
5 years ago (2015-11-24 22:19:28 UTC) #11
robert.bradford
Thank you for the review oshima@. All points addressed, but I did have a few ...
5 years ago (2015-11-26 16:29:41 UTC) #12
oshima
https://codereview.chromium.org/1456623002/diff/20001/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): https://codereview.chromium.org/1456623002/diff/20001/ui/display/chromeos/display_configurator.cc#newcode665 ui/display/chromeos/display_configurator.cc:665: // Exclude virtual displays. On 2015/11/26 16:29:40, robert.bradford wrote: ...
5 years ago (2015-12-02 20:34:27 UTC) #13
robert.bradford
Thanks oshima@ could you take another look? https://codereview.chromium.org/1456623002/diff/20001/ui/display/chromeos/display_snapshot_virtual.cc File ui/display/chromeos/display_snapshot_virtual.cc (right): https://codereview.chromium.org/1456623002/diff/20001/ui/display/chromeos/display_snapshot_virtual.cc#newcode18 ui/display/chromeos/display_snapshot_virtual.cc:18: gfx::Size(200, 200), ...
5 years ago (2015-12-03 18:44:57 UTC) #14
oshima
lgtm https://codereview.chromium.org/1456623002/diff/20001/ui/display/chromeos/display_snapshot_virtual.cc File ui/display/chromeos/display_snapshot_virtual.cc (right): https://codereview.chromium.org/1456623002/diff/20001/ui/display/chromeos/display_snapshot_virtual.cc#newcode18 ui/display/chromeos/display_snapshot_virtual.cc:18: gfx::Size(200, 200), On 2015/12/03 18:44:57, robert.bradford wrote: > ...
5 years ago (2015-12-03 18:54:07 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456623002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456623002/80001
5 years ago (2015-12-09 15:09:38 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/142381)
5 years ago (2015-12-09 17:19:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1456623002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1456623002/80001
5 years ago (2015-12-10 11:25:53 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-10 11:51:50 UTC) #23
commit-bot: I haz the power
5 years ago (2015-12-10 11:52:32 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3d88a677ef10af9780edef84ccde79b32de51cb6
Cr-Commit-Position: refs/heads/master@{#364332}

Powered by Google App Engine
This is Rietveld 408576698