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

Issue 480533002: RenderTextHarfBuzz: Set font render parameters in font data functions (Closed)

Created:
6 years, 4 months ago by ckocagil
Modified:
6 years, 4 months ago
Reviewers:
msw, Daniel Erat
CC:
chromium-reviews, oshima, behdad
Project:
chromium
Visibility:
Public.

Description

RenderTextHarfBuzz: Set font render parameters in font data functions - Properly pass font render settings to Skia font data functions. Otherwise Skia always returns rounded values. - If subpixel positioning is off, round the glyph positions to match Pango's rounding logic. BUG=402715, 402374, 402347 TEST=On Linux, character positions in UI text (address bar, infobars, tab titles) should be identical with --enable-harfbuzz-rendertext and --disable-harfbuzz-rendertext. NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290474

Patch Set 1 #

Total comments: 14

Patch Set 2 : comments #

Total comments: 2

Patch Set 3 : conditional rounding #

Total comments: 2

Patch Set 4 : derat's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -15 lines) Patch
M ui/gfx/render_text.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 3 2 chunks +12 lines, -6 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 6 chunks +20 lines, -9 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
ckocagil
6 years, 4 months ago (2014-08-15 17:27:34 UTC) #1
Daniel Erat
https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode1125 ui/gfx/render_text_harfbuzz.cc:1125: params.subpixel_rendering = FontRenderParams::SUBPIXEL_RENDERING_NONE; can you make ApplyRenderParams() check whether ...
6 years, 4 months ago (2014-08-15 18:34:25 UTC) #2
ckocagil
https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode1125 ui/gfx/render_text_harfbuzz.cc:1125: params.subpixel_rendering = FontRenderParams::SUBPIXEL_RENDERING_NONE; On 2014/08/15 18:34:25, Daniel Erat wrote: ...
6 years, 4 months ago (2014-08-15 19:05:57 UTC) #3
msw
https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text.cc#newcode214 ui/gfx/render_text.cc:214: void SkiaTextRenderer::SetFontRenderParams(FontRenderParams params, Can we remove this function, inline ...
6 years, 4 months ago (2014-08-15 19:21:17 UTC) #4
msw
+CC oshima for heads up ( see http://crbug.com/402715#c10 )
6 years, 4 months ago (2014-08-15 19:22:21 UTC) #5
ckocagil
https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text.cc#newcode214 ui/gfx/render_text.cc:214: void SkiaTextRenderer::SetFontRenderParams(FontRenderParams params, On 2014/08/15 19:21:17, msw wrote: > ...
6 years, 4 months ago (2014-08-15 22:28:01 UTC) #6
Daniel Erat
On 2014/08/15 22:28:01, ckocagil wrote: > https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text.cc > File ui/gfx/render_text.cc (right): > > https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text.cc#newcode214 > ...
6 years, 4 months ago (2014-08-15 22:31:30 UTC) #7
msw
Please add a CL description, TEST= and run the trybots. https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode879 ...
6 years, 4 months ago (2014-08-16 00:30:11 UTC) #8
ckocagil
https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/480533002/diff/1/ui/gfx/render_text_harfbuzz.cc#newcode1161 ui/gfx/render_text_harfbuzz.cc:1161: run->width = std::floor(run->width + 0.5f); On 2014/08/16 00:30:11, msw ...
6 years, 4 months ago (2014-08-16 14:01:15 UTC) #9
msw
Okay, lgtm
6 years, 4 months ago (2014-08-16 20:02:47 UTC) #10
ckocagil
Daniel, how about you?
6 years, 4 months ago (2014-08-16 20:25:00 UTC) #11
Daniel Erat
https://codereview.chromium.org/480533002/diff/40001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): https://codereview.chromium.org/480533002/diff/40001/ui/gfx/render_text.cc#newcode214 ui/gfx/render_text.cc:214: void SkiaTextRenderer::SetFontRenderParams(FontRenderParams params, i'd prefer that you left this ...
6 years, 4 months ago (2014-08-17 01:53:35 UTC) #12
ckocagil
Mike: this CL also fixes http://crbug.com/402374 and http://crbug.com/402347. Can these be due to the text ...
6 years, 4 months ago (2014-08-18 20:01:22 UTC) #13
Daniel Erat
lgtm thanks!
6 years, 4 months ago (2014-08-18 20:03:17 UTC) #14
ckocagil
The CQ bit was checked by ckocagil@chromium.org
6 years, 4 months ago (2014-08-19 00:28:01 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckocagil@chromium.org/480533002/60001
6 years, 4 months ago (2014-08-19 00:29:27 UTC) #16
msw
On 2014/08/18 20:01:22, ckocagil wrote: > Mike: this CL also fixes http://crbug.com/402374 and http://crbug.com/402347. > ...
6 years, 4 months ago (2014-08-19 00:49:21 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-19 01:52:43 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-19 01:57:05 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/7146)
6 years, 4 months ago (2014-08-19 01:57:06 UTC) #20
ckocagil
The CQ bit was checked by ckocagil@chromium.org
6 years, 4 months ago (2014-08-19 02:29:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckocagil@chromium.org/480533002/60001
6 years, 4 months ago (2014-08-19 02:30:37 UTC) #22
ckocagil
The CQ bit was unchecked by ckocagil@chromium.org
6 years, 4 months ago (2014-08-19 02:31:20 UTC) #23
ckocagil
The CQ bit was checked by ckocagil@chromium.org
6 years, 4 months ago (2014-08-19 02:34:23 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckocagil@chromium.org/480533002/60001
6 years, 4 months ago (2014-08-19 02:35:42 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-19 02:49:34 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-19 02:53:34 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/7156) mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/4540)
6 years, 4 months ago (2014-08-19 02:53:35 UTC) #28
ckocagil
The CQ bit was checked by ckocagil@chromium.org
6 years, 4 months ago (2014-08-19 03:10:19 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckocagil@chromium.org/480533002/60001
6 years, 4 months ago (2014-08-19 03:12:01 UTC) #30
ckocagil
Compile failures seem related to these: https://code.google.com/p/chromium/issues/detail?id=395477 https://code.google.com/p/chromium/issues/detail?id=399842 I'll land with NOTRY, hopefully this won't ...
6 years, 4 months ago (2014-08-19 03:25:58 UTC) #31
ckocagil
The CQ bit was unchecked by ckocagil@chromium.org
6 years, 4 months ago (2014-08-19 03:26:27 UTC) #32
ckocagil
The CQ bit was checked by ckocagil@chromium.org
6 years, 4 months ago (2014-08-19 03:26:33 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ckocagil@chromium.org/480533002/60001
6 years, 4 months ago (2014-08-19 03:26:49 UTC) #34
commit-bot: I haz the power
6 years, 4 months ago (2014-08-19 03:28:00 UTC) #35
Message was sent while issue was closed.
Committed patchset #4 (60001) as 290474

Powered by Google App Engine
This is Rietveld 408576698