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

Issue 22871010: chromeos: Include mode details in OutputSnapshot. (Closed)

Created:
7 years, 4 months ago by Daniel Erat
Modified:
7 years, 4 months ago
Reviewers:
Jun Mukai, oshima
CC:
chromium-reviews, stevenjb+watch_chromium.org, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

chromeos: Include mode details in OutputSnapshot. This updates OutputConfigurator to include modes' resolutions and interlaced-ness in OutputSnapshot structs, and to pass OutputSnapshots to observers after the display mode is changed. A following change will update ash's DisplayChangeObserverX11 class to use OutputSnapshots instead of asking the X server for the same information via XRandR. BUG=266113 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218069

Patch Set 1 #

Patch Set 2 : minor changes #

Total comments: 2

Patch Set 3 : add out-of-line dtor for OutputSnapshot #

Total comments: 7

Patch Set 4 : add InitOutputSnapshot() #

Total comments: 2

Patch Set 5 : move selected_mode back to GetOutputs() #

Patch Set 6 : avoid warning #

Patch Set 7 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -199 lines) Patch
M ash/display/display_change_observer_x11.h View 1 chunk +3 lines, -1 line 0 comments Download
M ash/display/display_change_observer_x11.cc View 3 chunks +7 lines, -2 lines 0 comments Download
M ash/display/display_util_x11.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/display/output_configurator_animation.h View 1 chunk +3 lines, -1 line 0 comments Download
M ash/display/output_configurator_animation.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ash/touch/touch_observer_hud.h View 1 chunk +3 lines, -1 line 0 comments Download
M ash/touch/touch_observer_hud.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/display/output_configurator.h View 1 2 7 chunks +31 lines, -14 lines 0 comments Download
M chromeos/display/output_configurator.cc View 1 2 11 chunks +69 lines, -47 lines 0 comments Download
M chromeos/display/output_configurator_unittest.cc View 6 chunks +12 lines, -27 lines 0 comments Download
M chromeos/display/output_util.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/display/output_util.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chromeos/display/real_output_configurator_delegate.h View 1 2 3 4 2 chunks +13 lines, -5 lines 0 comments Download
M chromeos/display/real_output_configurator_delegate.cc View 1 2 3 4 5 6 7 chunks +123 lines, -94 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Daniel Erat
7 years, 4 months ago (2013-08-15 16:53:37 UTC) #1
oshima
looks good, but want to double check "a class in a struct" question. https://codereview.chromium.org/22871010/diff/3001/chromeos/display/output_configurator.h File ...
7 years, 4 months ago (2013-08-15 19:03:23 UTC) #2
Daniel Erat
https://codereview.chromium.org/22871010/diff/6001/chromeos/display/output_configurator.h File chromeos/display/output_configurator.h (right): https://codereview.chromium.org/22871010/diff/6001/chromeos/display/output_configurator.h#newcode92 chromeos/display/output_configurator.h:92: uint64 height_mm; On 2013/08/15 19:03:24, oshima wrote: > are ...
7 years, 4 months ago (2013-08-15 19:26:23 UTC) #3
Daniel Erat
https://codereview.chromium.org/22871010/diff/3001/chromeos/display/output_configurator.h File chromeos/display/output_configurator.h (right): https://codereview.chromium.org/22871010/diff/3001/chromeos/display/output_configurator.h#newcode97 chromeos/display/output_configurator.h:97: std::map<RRMode, ModeInfo> mode_infos; On 2013/08/15 19:03:24, oshima wrote: > ...
7 years, 4 months ago (2013-08-15 19:29:26 UTC) #4
oshima
lgtm https://codereview.chromium.org/22871010/diff/6001/chromeos/display/real_output_configurator_delegate.cc File chromeos/display/real_output_configurator_delegate.cc (right): https://codereview.chromium.org/22871010/diff/6001/chromeos/display/real_output_configurator_delegate.cc#newcode128 chromeos/display/real_output_configurator_delegate.cc:128: OutputConfigurator::OutputSnapshot output; On 2013/08/15 19:26:23, Daniel Erat wrote: ...
7 years, 4 months ago (2013-08-15 19:37:26 UTC) #5
Daniel Erat
https://codereview.chromium.org/22871010/diff/6001/chromeos/display/real_output_configurator_delegate.cc File chromeos/display/real_output_configurator_delegate.cc (right): https://codereview.chromium.org/22871010/diff/6001/chromeos/display/real_output_configurator_delegate.cc#newcode128 chromeos/display/real_output_configurator_delegate.cc:128: OutputConfigurator::OutputSnapshot output; On 2013/08/15 19:37:26, oshima wrote: > On ...
7 years, 4 months ago (2013-08-15 21:20:33 UTC) #6
oshima
thanks, lgtm https://codereview.chromium.org/22871010/diff/16001/chromeos/display/real_output_configurator_delegate.cc File chromeos/display/real_output_configurator_delegate.cc (right): https://codereview.chromium.org/22871010/diff/16001/chromeos/display/real_output_configurator_delegate.cc#newcode353 chromeos/display/real_output_configurator_delegate.cc:353: output.selected_mode = output.native_mode; finding selected_mode could have ...
7 years, 4 months ago (2013-08-15 21:35:59 UTC) #7
Daniel Erat
https://codereview.chromium.org/22871010/diff/16001/chromeos/display/real_output_configurator_delegate.cc File chromeos/display/real_output_configurator_delegate.cc (right): https://codereview.chromium.org/22871010/diff/16001/chromeos/display/real_output_configurator_delegate.cc#newcode353 chromeos/display/real_output_configurator_delegate.cc:353: output.selected_mode = output.native_mode; On 2013/08/15 21:35:59, oshima wrote: > ...
7 years, 4 months ago (2013-08-15 21:57:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/22871010/21004
7 years, 4 months ago (2013-08-15 21:59:49 UTC) #9
commit-bot: I haz the power
Failed to trigger a try job on android_dbg HTTP Error 400: Bad Request
7 years, 4 months ago (2013-08-16 01:00:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/22871010/29002
7 years, 4 months ago (2013-08-16 01:00:33 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=188166
7 years, 4 months ago (2013-08-16 02:52:43 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/22871010/29002
7 years, 4 months ago (2013-08-16 03:13:46 UTC) #13
commit-bot: I haz the power
Failed to apply patch for chromeos/display/real_output_configurator_delegate.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-08-16 07:23:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/22871010/59001
7 years, 4 months ago (2013-08-16 15:28:26 UTC) #15
commit-bot: I haz the power
7 years, 4 months ago (2013-08-16 19:56:50 UTC) #16
Message was sent while issue was closed.
Change committed as 218069

Powered by Google App Engine
This is Rietveld 408576698