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

Issue 3304011: monitor_reconfig: Handle external monitors and add tests. (Closed)

Created:
10 years, 3 months ago by Daniel Erat
Modified:
9 years, 7 months ago
Reviewers:
sosa
CC:
chromium-os-reviews_chromium.org, sosa
Visibility:
Public.

Description

monitor_reconfig: Handle external monitors and add tests. This splits the resolution-choosing logic out into its own class to make it easier to test. It also adds some probably-unreliable heuristics to try to guess when the user would rather that we just use the external output's maximum resolution instead of trying to find a resolution that'll also work on the built-in output. BUG=chromium-os:2933 TEST=added a bunch

Patch Set 1 #

Patch Set 2 : add logic for external monitors #

Total comments: 4

Patch Set 3 : apply review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -115 lines) Patch
M Makefile View 1 2 1 chunk +10 lines, -3 lines 0 comments Download
M monitor_reconfigure_main.h View 3 chunks +4 lines, -30 lines 0 comments Download
M monitor_reconfigure_main.cc View 1 2 6 chunks +38 lines, -82 lines 0 comments Download
A resolution_selector.h View 1 2 1 chunk +85 lines, -0 lines 0 comments Download
A resolution_selector.cc View 1 2 1 chunk +91 lines, -0 lines 0 comments Download
A resolution_selector_test.cc View 1 2 1 chunk +165 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Daniel Erat
I'm planning to follow this up with a change to make the resolution selection logic ...
10 years, 3 months ago (2010-09-08 05:05:22 UTC) #1
Daniel Erat
On 2010/09/08 05:05:22, Daniel Erat wrote: > I'm planning to follow this up with a ...
10 years, 3 months ago (2010-09-08 11:20:57 UTC) #2
Daniel Erat
ping On 2010/09/08 11:20:57, Daniel Erat wrote: > On 2010/09/08 05:05:22, Daniel Erat wrote: > ...
10 years, 3 months ago (2010-09-10 23:41:07 UTC) #3
sosa
Tests look great, nits, LGTM http://codereview.chromium.org/3304011/diff/3001/4004 File resolution_selector.cc (right): http://codereview.chromium.org/3304011/diff/3001/4004#newcode47 resolution_selector.cc:47: if (max_external_size >= kMinExternalMonitorPixels) ...
10 years, 3 months ago (2010-09-11 00:02:49 UTC) #4
Daniel Erat
10 years, 3 months ago (2010-09-11 01:48:56 UTC) #5
Thanks!

http://codereview.chromium.org/3304011/diff/3001/4004
File resolution_selector.cc (right):

http://codereview.chromium.org/3304011/diff/3001/4004#newcode47
resolution_selector.cc:47: if (max_external_size >= kMinExternalMonitorPixels) {
On 2010/09/11 00:02:50, sosa wrote:
> I know this is just a heuristic but it seems more fair to compare against the
> kMaxProjectPixels since we are looking at the max res

Done.

http://codereview.chromium.org/3304011/diff/3001/4006
File resolution_selector_test.cc (right):

http://codereview.chromium.org/3304011/diff/3001/4006#newcode69
resolution_selector_test.cc:69: EXPECT_EQ("1024x768", screen_resolution_);
On 2010/09/11 00:02:50, sosa wrote:
> check for cleared external resolution?

Done.

Powered by Google App Engine
This is Rietveld 408576698