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

Issue 1136913005: Compute the base dpi from X (Closed)

Created:
5 years, 7 months ago by oshima
Modified:
5 years, 7 months ago
CC:
chromium-reviews, stapelberg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Compute the base dpi from X X uses 96 as default, and alters the screen size but it can be overwritten. Compute the dpi from X to match what gtk sues as base. Round the dsf to 1 decimals as finer grained value can cause rendering problem than benefit. Gpu test expectation on nvidia needs to be updated, so mark these tests as failing now. BUG=485183 Committed: https://crrev.com/5cb0c01e4233ff3eb1e7f6f677b4cf9dae9ffaf2 Cr-Commit-Position: refs/heads/master@{#330212}

Patch Set 1 : #

Patch Set 2 : kill empty line #

Total comments: 2

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : fix comment #

Patch Set 7 : mark the tests whose expectations need to be updated failing #

Total comments: 4

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -11 lines) Patch
M chrome/browser/ui/libgtk2ui/gtk2_ui.cc View 1 2 3 4 5 4 chunks +15 lines, -7 lines 0 comments Download
M content/test/gpu/gpu_tests/pixel_expectations.py View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M content/test/gpu/page_sets/pixel_tests.py View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 37 (14 generated)
oshima
estade@ for owners review mdempsky@, would you mind testing this patch and see if it ...
5 years, 7 months ago (2015-05-13 22:00:45 UTC) #4
Evan Stade
https://codereview.chromium.org/1136913005/diff/60001/chrome/browser/ui/libgtk2ui/gtk2_ui.cc File chrome/browser/ui/libgtk2ui/gtk2_ui.cc (right): https://codereview.chromium.org/1136913005/diff/60001/chrome/browser/ui/libgtk2ui/gtk2_ui.cc#newcode386 chrome/browser/ui/libgtk2ui/gtk2_ui.cc:386: return (static_cast<double>(DisplayWidth(xdisplay, xscreen)) * 25.4) / is this casting ...
5 years, 7 months ago (2015-05-13 22:09:28 UTC) #5
oshima
https://codereview.chromium.org/1136913005/diff/60001/chrome/browser/ui/libgtk2ui/gtk2_ui.cc File chrome/browser/ui/libgtk2ui/gtk2_ui.cc (right): https://codereview.chromium.org/1136913005/diff/60001/chrome/browser/ui/libgtk2ui/gtk2_ui.cc#newcode386 chrome/browser/ui/libgtk2ui/gtk2_ui.cc:386: return (static_cast<double>(DisplayWidth(xdisplay, xscreen)) * 25.4) / On 2015/05/13 22:09:27, ...
5 years, 7 months ago (2015-05-13 22:21:24 UTC) #6
Evan Stade
I'll owner stamp after mdempsky review
5 years, 7 months ago (2015-05-13 22:24:42 UTC) #7
mdempsky
I'll try it out. https://codereview.chromium.org/1136913005/diff/80001/chrome/browser/ui/libgtk2ui/gtk2_ui.cc File chrome/browser/ui/libgtk2ui/gtk2_ui.cc (right): https://codereview.chromium.org/1136913005/diff/80001/chrome/browser/ui/libgtk2ui/gtk2_ui.cc#newcode386 chrome/browser/ui/libgtk2ui/gtk2_ui.cc:386: return (DisplayWidth(xdisplay, xscreen) * 25.4) ...
5 years, 7 months ago (2015-05-13 22:26:47 UTC) #8
oshima
https://codereview.chromium.org/1136913005/diff/80001/chrome/browser/ui/libgtk2ui/gtk2_ui.cc File chrome/browser/ui/libgtk2ui/gtk2_ui.cc (right): https://codereview.chromium.org/1136913005/diff/80001/chrome/browser/ui/libgtk2ui/gtk2_ui.cc#newcode386 chrome/browser/ui/libgtk2ui/gtk2_ui.cc:386: return (DisplayWidth(xdisplay, xscreen) * 25.4) / On 2015/05/13 22:26:46, ...
5 years, 7 months ago (2015-05-13 22:40:33 UTC) #9
mdempsky
Looks right to me on my HP Z30i when I disable the "Xft.dpi: 96" workaround. ...
5 years, 7 months ago (2015-05-13 23:14:36 UTC) #10
oshima
On 2015/05/13 23:14:36, mdempsky wrote: > Looks right to me on my HP Z30i when ...
5 years, 7 months ago (2015-05-13 23:34:48 UTC) #11
oshima
mdempsky: ping?
5 years, 7 months ago (2015-05-14 22:23:01 UTC) #12
mdempsky
lgtm
5 years, 7 months ago (2015-05-14 22:26:06 UTC) #13
Evan Stade
lgtm https://codereview.chromium.org/1136913005/diff/120001/chrome/browser/ui/libgtk2ui/gtk2_ui.cc File chrome/browser/ui/libgtk2ui/gtk2_ui.cc (right): https://codereview.chromium.org/1136913005/diff/120001/chrome/browser/ui/libgtk2ui/gtk2_ui.cc#newcode1437 chrome/browser/ui/libgtk2ui/gtk2_ui.cc:1437: // Round to 1 decimals, e.g. to 1.4. ...
5 years, 7 months ago (2015-05-14 22:43:04 UTC) #14
oshima
https://codereview.chromium.org/1136913005/diff/120001/chrome/browser/ui/libgtk2ui/gtk2_ui.cc File chrome/browser/ui/libgtk2ui/gtk2_ui.cc (right): https://codereview.chromium.org/1136913005/diff/120001/chrome/browser/ui/libgtk2ui/gtk2_ui.cc#newcode1437 chrome/browser/ui/libgtk2ui/gtk2_ui.cc:1437: // Round to 1 decimals, e.g. to 1.4. On ...
5 years, 7 months ago (2015-05-14 22:45:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136913005/140001
5 years, 7 months ago (2015-05-14 22:46:29 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/65081)
5 years, 7 months ago (2015-05-15 00:50:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136913005/140001
5 years, 7 months ago (2015-05-15 01:13:32 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/65188)
5 years, 7 months ago (2015-05-15 03:14:18 UTC) #24
oshima
+kbr@ for content/test/gpu/gpu_tests/pixel_expectations.py
5 years, 7 months ago (2015-05-15 18:10:05 UTC) #26
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1136913005/diff/160001/content/test/gpu/gpu_tests/pixel_expectations.py File content/test/gpu/gpu_tests/pixel_expectations.py (right): https://codereview.chromium.org/1136913005/diff/160001/content/test/gpu/gpu_tests/pixel_expectations.py#newcode19 content/test/gpu/gpu_tests/pixel_expectations.py:19: [ ('nvidia', 0x104a)], bug=485183) Actually, since you need to ...
5 years, 7 months ago (2015-05-15 18:18:56 UTC) #27
oshima
https://codereview.chromium.org/1136913005/diff/160001/content/test/gpu/gpu_tests/pixel_expectations.py File content/test/gpu/gpu_tests/pixel_expectations.py (right): https://codereview.chromium.org/1136913005/diff/160001/content/test/gpu/gpu_tests/pixel_expectations.py#newcode19 content/test/gpu/gpu_tests/pixel_expectations.py:19: [ ('nvidia', 0x104a)], bug=485183) On 2015/05/15 18:18:56, Ken Russell ...
5 years, 7 months ago (2015-05-15 19:37:18 UTC) #28
Ken Russell (switch to Gerrit)
Thanks. LGTM
5 years, 7 months ago (2015-05-15 20:37:15 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1136913005/200001
5 years, 7 months ago (2015-05-15 20:42:49 UTC) #35
commit-bot: I haz the power
Committed patchset #9 (id:200001)
5 years, 7 months ago (2015-05-15 22:16:19 UTC) #36
commit-bot: I haz the power
5 years, 7 months ago (2015-05-18 11:28:15 UTC) #37
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/5cb0c01e4233ff3eb1e7f6f677b4cf9dae9ffaf2
Cr-Commit-Position: refs/heads/master@{#330212}

Powered by Google App Engine
This is Rietveld 408576698