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

Issue 1105903002: xvfb: set dpi to 96 (xvfb defaults to 100). (Closed)

Created:
5 years, 8 months ago by stapelberg
Modified:
5 years, 8 months ago
CC:
chromium-reviews, kjellander-cc_chromium.org, stip+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/build.git@master
Target Ref:
refs/heads/master
Project:
tools
Visibility:
Public.

Description

xvfb: set dpi to 96 (xvfb defaults to 100). Tests assume that the DPI is effectively 96. Up until recently, this was the case because chromium only supported 100% (corresponding to 96 dpi) or 200% (corresponding to 192 dpi) scaling in its UI. With https://codereview.chromium.org/1078423002/, we want to change that to better reflect the hardware that many people have today. Applying that CL without also changing the DPI results in tests failing because of off-by-a-few-pixel errors. BUG=477716, 143619 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=294979

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M scripts/slave/xvfb.py View 1 chunk +2 lines, -1 line 1 comment Download

Messages

Total messages: 9 (3 generated)
stapelberg
5 years, 8 months ago (2015-04-24 14:18:58 UTC) #2
Alexander Potapenko
On 2015/04/24 14:18:58, stapelberg wrote: rubberstamp LGTM
5 years, 8 months ago (2015-04-24 14:20:28 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1105903002/1
5 years, 8 months ago (2015-04-24 14:22:04 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as http://src.chromium.org/viewvc/chrome?view=rev&revision=294979
5 years, 8 months ago (2015-04-24 14:26:10 UTC) #6
pfeifer
(apologies in advance if the comment is not pertinent, I don't have the full picture) ...
5 years, 8 months ago (2015-04-24 14:59:52 UTC) #8
stapelberg
5 years, 8 months ago (2015-04-24 15:01:15 UTC) #9
Message was sent while issue was closed.
On 2015/04/24 14:59:52, pfeifer wrote:
> (apologies in advance if the comment is not pertinent, I don't have the full
> picture)
> 
> https://codereview.chromium.org/1105903002/diff/1/scripts/slave/xvfb.py
> File scripts/slave/xvfb.py (right):
> 
>
https://codereview.chromium.org/1105903002/diff/1/scripts/slave/xvfb.py#newco...
> scripts/slave/xvfb.py:76: '-dpi', '96'],
> With HiDPI becoming more popular, it's conceivable that one would want to
write
> tests for different DPI settings.
> 
> Is it worth making dpi an extra parameter to StartVirtualX which defaults to
96
> ?

Possibly, but that’s for another time. I’ll leave that up to people who actually
want to port the existing hidpi tests that we have for OS X to Linux.

Powered by Google App Engine
This is Rietveld 408576698