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

Issue 385463002: Support FontRenderParams on Win; fix RenderTextHarfBuzz. (Closed)

Created:
6 years, 5 months ago by msw
Modified:
6 years, 5 months ago
CC:
chromium-reviews, sadrul, jam, darin-cc_chromium.org, kalyank, ben+ash_chromium.org, Alexei Svitkine (slow), oshima
Project:
chromium
Visibility:
Public.

Description

Support FontRenderParams on Win; fix RenderTextHarfBuzz. Set FontRenderParams in RenderTextHarfBuzz on Linux. (required for text aliasing and subpixel settings) Replace font_smoothing_win with font_render_params_win.cc (unify the cross-platform methods of getting this info) BUG=391868, 321868 TEST=Chrome OS tray button text looks good with --enable-harfbuzz-rendertext; no other font appearance changes on Win/Linux/CrOS and --enable-harfbuzz-rendertext uses the same font rendering settings as the default Uniscribe/Pango RenderText implementations. R=derat@chromium.org,ckocagil@chromium.org TBR=asvitkine@chromium.org,boliu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282223

Patch Set 1 #

Patch Set 2 : Revise SkiaTextRenderer::SetFontRenderParams; sync and cleanup. #

Total comments: 2

Patch Set 3 : Update Android include. #

Total comments: 2

Patch Set 4 : Fix header guards. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -266 lines) Patch
M android_webview/native/aw_settings.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_preferences_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/sandbox_ipc_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/BUILD.gn View 1 1 chunk +2 lines, -3 lines 0 comments Download
A + ui/gfx/font_render_params.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ui/gfx/font_render_params_android.cc View 1 chunk +1 line, -1 line 0 comments Download
D ui/gfx/font_render_params_linux.h View 1 chunk +0 lines, -70 lines 0 comments Download
M ui/gfx/font_render_params_linux.cc View 3 chunks +3 lines, -3 lines 0 comments Download
A ui/gfx/font_render_params_win.cc View 1 1 chunk +80 lines, -0 lines 3 comments Download
D ui/gfx/font_smoothing_win.h View 1 chunk +0 lines, -16 lines 0 comments Download
D ui/gfx/font_smoothing_win.cc View 1 chunk +0 lines, -121 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 chunk +2 lines, -3 lines 0 comments Download
M ui/gfx/linux_font_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/pango_util.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/render_text.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ui/gfx/render_text.cc View 1 1 chunk +6 lines, -6 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 2 chunks +6 lines, -16 lines 0 comments Download
M ui/gfx/render_text_pango.cc View 1 2 chunks +2 lines, -8 lines 0 comments Download
M ui/gfx/render_text_win.cc View 1 2 chunks +3 lines, -8 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
msw
Hey Dan and Cem, please take a look; thanks!
6 years, 5 months ago (2014-07-09 23:30:22 UTC) #1
Daniel Erat
lgtm nice, i'm happy to see this get unified. i have a change that i'll ...
6 years, 5 months ago (2014-07-09 23:38:54 UTC) #2
msw
TBR: asvitkine for ui/gfx/ and boliu for android_webview/. https://codereview.chromium.org/385463002/diff/80001/ui/gfx/render_text_harfbuzz.cc File ui/gfx/render_text_harfbuzz.cc (right): https://codereview.chromium.org/385463002/diff/80001/ui/gfx/render_text_harfbuzz.cc#newcode781 ui/gfx/render_text_harfbuzz.cc:781: #if ...
6 years, 5 months ago (2014-07-09 23:53:00 UTC) #3
msw
The CQ bit was checked by msw@chromium.org
6 years, 5 months ago (2014-07-09 23:53:16 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/385463002/100001
6 years, 5 months ago (2014-07-09 23:54:40 UTC) #5
boliu
android_webview lgtm https://codereview.chromium.org/385463002/diff/100001/ui/gfx/font_render_params.h File ui/gfx/font_render_params.h (right): https://codereview.chromium.org/385463002/diff/100001/ui/gfx/font_render_params.h#newcode5 ui/gfx/font_render_params.h:5: #ifndef UI_GFX_FONT_RENDER_PARAMS_LINUX_H_ Should these header defines be ...
6 years, 5 months ago (2014-07-09 23:56:16 UTC) #6
msw
The CQ bit was unchecked by msw@chromium.org
6 years, 5 months ago (2014-07-09 23:59:48 UTC) #7
msw
https://codereview.chromium.org/385463002/diff/100001/ui/gfx/font_render_params.h File ui/gfx/font_render_params.h (right): https://codereview.chromium.org/385463002/diff/100001/ui/gfx/font_render_params.h#newcode5 ui/gfx/font_render_params.h:5: #ifndef UI_GFX_FONT_RENDER_PARAMS_LINUX_H_ On 2014/07/09 23:56:15, boliu wrote: > Should ...
6 years, 5 months ago (2014-07-10 00:02:29 UTC) #8
msw
The CQ bit was checked by msw@chromium.org
6 years, 5 months ago (2014-07-10 00:02:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/385463002/120001
6 years, 5 months ago (2014-07-10 00:06:55 UTC) #10
commit-bot: I haz the power
Change committed as 282223
6 years, 5 months ago (2014-07-10 02:57:05 UTC) #11
Alexei Svitkine (slow)
https://codereview.chromium.org/385463002/diff/120001/ui/gfx/font_render_params_win.cc File ui/gfx/font_render_params_win.cc (right): https://codereview.chromium.org/385463002/diff/120001/ui/gfx/font_render_params_win.cc#newcode61 ui/gfx/font_render_params_win.cc:61: gfx::SingletonHwnd::GetInstance()->RemoveObserver(this); Wait, what if the settings change again? Wouldn't ...
6 years, 5 months ago (2014-07-14 15:00:53 UTC) #12
ckocagil
https://codereview.chromium.org/385463002/diff/120001/ui/gfx/font_render_params_win.cc File ui/gfx/font_render_params_win.cc (right): https://codereview.chromium.org/385463002/diff/120001/ui/gfx/font_render_params_win.cc#newcode61 ui/gfx/font_render_params_win.cc:61: gfx::SingletonHwnd::GetInstance()->RemoveObserver(this); On 2014/07/14 15:00:53, Alexei Svitkine wrote: > Wait, ...
6 years, 5 months ago (2014-07-14 16:13:47 UTC) #13
Alexei Svitkine (slow)
6 years, 5 months ago (2014-07-14 16:32:21 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/385463002/diff/120001/ui/gfx/font_render_para...
File ui/gfx/font_render_params_win.cc (right):

https://codereview.chromium.org/385463002/diff/120001/ui/gfx/font_render_para...
ui/gfx/font_render_params_win.cc:61:
gfx::SingletonHwnd::GetInstance()->RemoveObserver(this);
On 2014/07/14 16:13:47, ckocagil wrote:
> On 2014/07/14 15:00:53, Alexei Svitkine wrote:
> > Wait, what if the settings change again? Wouldn't the observer have been
> removed
> > and we wouldn't see it?
> 
> There's no need to invalidate the already invalidated |params_| (i.e when
> params_ is NULL). GetParams() adds the observer back, so the observer is alive
> whenever |params_| is valid.

Ah, got it!

Powered by Google App Engine
This is Rietveld 408576698