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

Issue 606913002: chromeos: Choose monitor native mode as best match mode (Closed)

Created:
6 years, 2 months ago by davidung
Modified:
6 years, 2 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

chromeos: Choose monitor native mode as best match mode Previously the UI chooses the highest pixel rate mode when multiple modes exists for the same screen resolution. If there exist a higher pixel clock mode that's the same as the monitor's preferred mode, then HDMI is first plugged in it will choose the preferred mode, but when you later switch away to a different resolution and then switch back, you will get the higher pixel clock version. This patch changes FindDisplayModeMatchingSize() to choose the preferred mode instead of the one with highest pixel clock. BUG=chrome-os-partner:29514 TEST=Using the EDID of DELL U2410, there are two 1920x1200 modes 1920x1200 (0x1d2) 154.0MHz -HSync +VSync *current +preferred h: width 1920 start 1968 end 2000 total 2080 skew 0 clock 74.0KHz v: height 1200 start 1203 end 1209 total 1235 clock 60.0Hz 1920x1200 (0x1d3) 193.2MHz -HSync -VSync h: width 1920 start 2049 end 2256 total 2593 skew 0 clock 74.5KHz v: height 1200 start 1202 end 1205 total 1242 clock 60.0Hz plug HDMI in, and obseve that it uses mode 0x1d2. switch to 720p mode, then switch back to 1920x1200 observe that it does not use mode 0x1d3. Committed: https://crrev.com/6923c2bc95e85e4ef800101a534744c03b25048a Cr-Commit-Position: refs/heads/master@{#300976}

Patch Set 1 #

Patch Set 2 : Add unittest #

Total comments: 1

Patch Set 3 : formatting #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -7 lines) Patch
M ui/display/chromeos/display_configurator.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/display/chromeos/display_configurator_unittest.cc View 1 2 2 chunks +12 lines, -7 lines 0 comments Download

Messages

Total messages: 25 (3 generated)
davidung
ping
6 years, 2 months ago (2014-10-13 21:07:26 UTC) #2
Daniel Erat
Please also add tests for this change to ui/display/chromeos/display_configurator_unittest.cc.
6 years, 2 months ago (2014-10-13 23:04:23 UTC) #4
davidung
On 2014/10/13 23:04:23, Daniel Erat wrote: > Please also add tests for this change to ...
6 years, 2 months ago (2014-10-13 23:30:36 UTC) #5
davidung
On 2014/10/13 23:30:36, davidung wrote: > On 2014/10/13 23:04:23, Daniel Erat wrote: > > Please ...
6 years, 2 months ago (2014-10-20 21:56:02 UTC) #6
Daniel Erat
build the appropriate test binary (display_unittests in this case) and then run it with --gtest_filter='DisplayConfiguratorTest.*'.
6 years, 2 months ago (2014-10-20 21:59:41 UTC) #7
davidung
On 2014/10/20 21:59:41, Daniel Erat wrote: > build the appropriate test binary (display_unittests in this ...
6 years, 2 months ago (2014-10-20 22:33:47 UTC) #8
Daniel Erat
On 2014/10/20 22:33:47, davidung wrote: > On 2014/10/20 21:59:41, Daniel Erat wrote: > > build ...
6 years, 2 months ago (2014-10-20 22:38:40 UTC) #9
davidung
On 2014/10/20 22:38:40, Daniel Erat wrote: > On 2014/10/20 22:33:47, davidung wrote: > > On ...
6 years, 2 months ago (2014-10-20 23:59:46 UTC) #10
Daniel Erat
On 2014/10/20 23:59:46, davidung wrote: > On 2014/10/20 22:38:40, Daniel Erat wrote: > > On ...
6 years, 2 months ago (2014-10-21 14:55:11 UTC) #11
Daniel Erat
On 2014/10/21 14:55:11, Daniel Erat wrote: > On 2014/10/20 23:59:46, davidung wrote: > > On ...
6 years, 2 months ago (2014-10-21 14:56:11 UTC) #12
davidung
> > > > did you set chromeos=1 in $GYP_DEFINES? > > (i suspect not, ...
6 years, 2 months ago (2014-10-21 21:54:37 UTC) #13
Daniel Erat
sorry, i probably can't be any more help -- i've never done an arm build ...
6 years, 2 months ago (2014-10-21 21:59:06 UTC) #14
davidung
On 2014/10/21 21:59:06, Daniel Erat wrote: > sorry, i probably can't be any more help ...
6 years, 2 months ago (2014-10-21 22:08:12 UTC) #15
Daniel Erat
On 2014/10/21 22:08:12, davidung wrote: > On 2014/10/21 21:59:06, Daniel Erat wrote: > > sorry, ...
6 years, 2 months ago (2014-10-21 22:11:37 UTC) #16
Daniel Erat
On 2014/10/21 22:11:37, Daniel Erat wrote: > On 2014/10/21 22:08:12, davidung wrote: > > On ...
6 years, 2 months ago (2014-10-21 22:12:38 UTC) #17
davidung
On 2014/10/21 22:12:38, Daniel Erat wrote: > On 2014/10/21 22:11:37, Daniel Erat wrote: > > ...
6 years, 2 months ago (2014-10-21 23:11:40 UTC) #18
Daniel Erat
On 2014/10/21 23:11:40, davidung wrote: > On 2014/10/21 22:12:38, Daniel Erat wrote: > > On ...
6 years, 2 months ago (2014-10-21 23:26:43 UTC) #19
davidung
Patset 2 uploaded with unittest added. [1/37] DisplayConfiguratorTest.PanelFitting (0 ms) [2/37] DisplayConfiguratorTest.ContentProtection (1 ms) [3/37] ...
6 years, 2 months ago (2014-10-22 01:39:06 UTC) #20
Daniel Erat
lgtm with one comment https://codereview.chromium.org/606913002/diff/50001/ui/display/chromeos/display_configurator_unittest.cc File ui/display/chromeos/display_configurator_unittest.cc (right): https://codereview.chromium.org/606913002/diff/50001/ui/display/chromeos/display_configurator_unittest.cc#newcode439 ui/display/chromeos/display_configurator_unittest.cc:439: DisplayMode *native_mode; nit: please initialize ...
6 years, 2 months ago (2014-10-22 17:04:03 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/606913002/70001
6 years, 2 months ago (2014-10-23 22:03:15 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:70001)
6 years, 2 months ago (2014-10-23 23:26:24 UTC) #24
commit-bot: I haz the power
6 years, 2 months ago (2014-10-23 23:26:44 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6923c2bc95e85e4ef800101a534744c03b25048a
Cr-Commit-Position: refs/heads/master@{#300976}

Powered by Google App Engine
This is Rietveld 408576698