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

Issue 387743002: Apply hinting in SkiaTextRenderer::SetFontRenderParams(). (Closed)

Created:
6 years, 5 months ago by Daniel Erat
Modified:
6 years, 5 months ago
Reviewers:
msw
CC:
chromium-reviews, Alexei Svitkine (slow)
Project:
chromium
Visibility:
Public.

Description

Apply hinting in SkiaTextRenderer::SetFontRenderParams(). Make SetFontRenderParams() pass the hinting setting through to SkPaint instead of exposing a separate SetFontHinting() method. Also add a default c'tor for FontRenderParams and pass its autohinter setting through to SkPaint as well. BUG=125235, 375824 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282703

Patch Set 1 #

Patch Set 2 : change autohinting default #

Total comments: 9

Patch Set 3 : apply review feedback #

Total comments: 2

Patch Set 4 : add fallback return #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -25 lines) Patch
M ui/gfx/font_render_params.h View 1 chunk +2 lines, -1 line 0 comments Download
A ui/gfx/font_render_params.cc View 1 chunk +20 lines, -0 lines 0 comments Download
M ui/gfx/font_render_params_linux.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gfx/font_render_params_win.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/render_text.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/render_text.cc View 1 2 3 2 chunks +15 lines, -4 lines 0 comments Download
M ui/gfx/render_text_pango.cc View 1 2 1 chunk +2 lines, -19 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Daniel Erat
https://codereview.chromium.org/387743002/diff/20001/ui/gfx/font_render_params_linux.cc File ui/gfx/font_render_params_linux.cc (right): https://codereview.chromium.org/387743002/diff/20001/ui/gfx/font_render_params_linux.cc#newcode68 ui/gfx/font_render_params_linux.cc:68: params->autohinter = renderer; so this is pretty gross. SkiaTextRenderer ...
6 years, 5 months ago (2014-07-10 23:46:35 UTC) #1
msw
lgtm with optional nits. https://codereview.chromium.org/387743002/diff/20001/ui/gfx/font_render_params_linux.cc File ui/gfx/font_render_params_linux.cc (right): https://codereview.chromium.org/387743002/diff/20001/ui/gfx/font_render_params_linux.cc#newcode68 ui/gfx/font_render_params_linux.cc:68: params->autohinter = renderer; On 2014/07/10 ...
6 years, 5 months ago (2014-07-11 00:29:10 UTC) #2
Daniel Erat
https://codereview.chromium.org/387743002/diff/20001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/387743002/diff/20001/ui/gfx/render_text.cc#newcode211 ui/gfx/render_text.cc:211: switch (params.hinting) { On 2014/07/11 00:29:10, msw wrote: > ...
6 years, 5 months ago (2014-07-11 03:15:02 UTC) #3
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 5 months ago (2014-07-11 03:15:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/387743002/40001
6 years, 5 months ago (2014-07-11 03:18:56 UTC) #5
msw
https://codereview.chromium.org/387743002/diff/20001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/387743002/diff/20001/ui/gfx/render_text.cc#newcode211 ui/gfx/render_text.cc:211: switch (params.hinting) { On 2014/07/11 03:15:01, Daniel Erat wrote: ...
6 years, 5 months ago (2014-07-11 04:40:57 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_gn_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-11 05:06:15 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-11 05:14:23 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win8_chromium_rel/builds/2858)
6 years, 5 months ago (2014-07-11 05:14:24 UTC) #9
Daniel Erat
https://codereview.chromium.org/387743002/diff/40001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/387743002/diff/40001/ui/gfx/render_text.cc#newcode161 ui/gfx/render_text.cc:161: SkPaint::Hinting FontRenderParamsHintingToSkPaintHinting( On 2014/07/11 04:40:57, msw wrote: > You'll ...
6 years, 5 months ago (2014-07-11 13:13:45 UTC) #10
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 5 months ago (2014-07-11 13:13:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/387743002/60001
6 years, 5 months ago (2014-07-11 13:14:53 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-11 17:54:34 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-11 18:59:15 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/37587)
6 years, 5 months ago (2014-07-11 18:59:15 UTC) #15
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 5 months ago (2014-07-11 19:09:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/387743002/60001
6 years, 5 months ago (2014-07-11 19:10:04 UTC) #17
commit-bot: I haz the power
6 years, 5 months ago (2014-07-11 21:21:25 UTC) #18
Message was sent while issue was closed.
Change committed as 282703

Powered by Google App Engine
This is Rietveld 408576698