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

Issue 738363002: Enable subpixel positioning for UI (Closed)

Created:
6 years, 1 month ago by ckocagil
Modified:
6 years ago
Reviewers:
Daniel Erat, eae, jam, msw, ananta, sky
CC:
chromium-reviews, eae
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Enable subpixel positioning for UI BUG=389649, 434860, 434843 R=ananta,msw,derat,jam,eae,sky Committed: https://crrev.com/9a4438efc6399ff2024ffb4d7b0e087da2c6f4c0 Cr-Commit-Position: refs/heads/master@{#306346}

Patch Set 1 #

Total comments: 1

Patch Set 2 : enable dwrite in more processes; fix tests; revert to gdi metrics #

Patch Set 3 : re-disable dwrite in tests, re-enable dwrite metrics #

Total comments: 10

Patch Set 4 : comments addressed #

Patch Set 5 : rebased #

Total comments: 4

Patch Set 6 : rebased #

Patch Set 7 : comments addressed #

Patch Set 8 : std::round to std::floor(+0.5) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -90 lines) Patch
M content/browser/browser_main_runner.cc View 1 2 3 4 3 chunks +1 line, -44 lines 0 comments Download
M ui/gfx/font_render_params_win.cc View 1 3 chunks +3 lines, -5 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.h View 1 3 chunks +9 lines, -3 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 4 5 6 7 11 chunks +38 lines, -26 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 4 chunks +38 lines, -5 lines 0 comments Download
M ui/gfx/win/direct_write.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/win/direct_write.cc View 1 2 3 4 5 6 2 chunks +50 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M ui/views/examples/examples_main.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
ckocagil
Looks like enabling subpixel positioning fixes the issues. ananta: Does this make sense to you?
6 years, 1 month ago (2014-11-20 12:20:36 UTC) #2
Daniel Erat
lgtm, but i don't know much about windows so you should wait for someone else's ...
6 years, 1 month ago (2014-11-20 15:32:14 UTC) #3
eae
This more or less matches the logic we use in blink so LGTM.
6 years, 1 month ago (2014-11-20 16:35:22 UTC) #5
ananta
lgtm
6 years, 1 month ago (2014-11-20 16:43:06 UTC) #6
msw
Nice work, Cem; just one request. https://codereview.chromium.org/738363002/diff/1/ui/gfx/font_render_params_win.cc File ui/gfx/font_render_params_win.cc (right): https://codereview.chromium.org/738363002/diff/1/ui/gfx/font_render_params_win.cc#newcode22 ui/gfx/font_render_params_win.cc:22: const FontRenderParams& GetParams(bool ...
6 years, 1 month ago (2014-11-20 17:41:45 UTC) #7
ckocagil
I had to expand the scope of this CL. Requesting another round of reviews. msw: ...
6 years, 1 month ago (2014-11-23 20:13:37 UTC) #10
ananta
On 2014/11/23 20:13:37, ckocagil wrote: > I had to expand the scope of this CL. ...
6 years, 1 month ago (2014-11-24 01:12:58 UTC) #11
ckocagil
On 2014/11/24 01:12:58, ananta wrote: > The gdi metrics codepath will cause all the bugs ...
6 years, 1 month ago (2014-11-24 02:12:32 UTC) #13
jam
content lgtm
6 years ago (2014-11-24 18:15:21 UTC) #14
msw
https://codereview.chromium.org/738363002/diff/80001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/738363002/diff/80001/ui/gfx/render_text.cc#newcode725 ui/gfx/render_text.cc:725: return cursor_enabled_ ? This change seems hinge on the ...
6 years ago (2014-11-24 21:51:00 UTC) #15
ckocagil
+sky: ui/views/* https://codereview.chromium.org/738363002/diff/80001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/738363002/diff/80001/ui/gfx/render_text.cc#newcode725 ui/gfx/render_text.cc:725: return cursor_enabled_ ? On 2014/11/24 21:51:00, msw ...
6 years ago (2014-11-25 01:39:47 UTC) #17
msw
lgtm https://codereview.chromium.org/738363002/diff/80001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/738363002/diff/80001/ui/gfx/render_text_harfbuzz.cc#newcode657 ui/gfx/render_text_harfbuzz.cc:657: bounds.second = std::ceil(bounds.second); On 2014/11/25 01:39:47, ckocagil wrote: ...
6 years ago (2014-11-25 04:52:06 UTC) #18
sky
https://codereview.chromium.org/738363002/diff/120001/ui/gfx/win/direct_write.cc File ui/gfx/win/direct_write.cc (right): https://codereview.chromium.org/738363002/diff/120001/ui/gfx/win/direct_write.cc#newcode68 ui/gfx/win/direct_write.cc:68: void MaybeInitializeDirectWrite() { What happens if this is invoked ...
6 years ago (2014-12-01 15:57:22 UTC) #19
ckocagil
https://codereview.chromium.org/738363002/diff/120001/ui/gfx/win/direct_write.cc File ui/gfx/win/direct_write.cc (right): https://codereview.chromium.org/738363002/diff/120001/ui/gfx/win/direct_write.cc#newcode68 ui/gfx/win/direct_write.cc:68: void MaybeInitializeDirectWrite() { On 2014/12/01 15:57:22, sky wrote: > ...
6 years ago (2014-12-01 19:31:53 UTC) #20
sky
The static, LGTM
6 years ago (2014-12-01 22:45:09 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/738363002/160001
6 years ago (2014-12-02 00:35:30 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/88395)
6 years ago (2014-12-02 01:01:25 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/738363002/180001
6 years ago (2014-12-02 03:01:45 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:180001)
6 years ago (2014-12-02 04:48:40 UTC) #28
commit-bot: I haz the power
6 years ago (2014-12-02 04:49:28 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/9a4438efc6399ff2024ffb4d7b0e087da2c6f4c0
Cr-Commit-Position: refs/heads/master@{#306346}

Powered by Google App Engine
This is Rietveld 408576698