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

Issue 344653002: Customize SkFontMgr::Factory to control DirectWrite vs. GDI selection (Closed)

Created:
6 years, 6 months ago by scottmg
Modified:
6 years, 6 months ago
Reviewers:
bungeman-skia, jamesr
CC:
chromium-reviews, darin-cc_chromium.org, jam, jschuh, ananta, Will Harris
Visibility:
Public.

Description

Customize SkFontMgr::Factory to control DirectWrite vs. GDI selection Move SkFontMgr::Factory to skia/ext so that we can use the warmed-up sandbox version when using DirectWrite that's created by content/. This avoids the previous default behaviour of creating a GDI SkFontMgr which is always wrong when DirectWrite is being used (and causes crashes when --enable_win32k_renderer_lockdown is enabled). R=jamesr@chromium.org,bungeman@google.com BUG=385926, 356950, 385717 TEST=http://www.effectgames.com/demos/canvascycle/ http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_canvas_filltext and enabling FPS in about:flags with both --enable_win32k_renderer_lockdown and --disable-direct-write Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278222

Patch Set 1 #

Total comments: 1

Patch Set 2 : gn #

Total comments: 2

Patch Set 3 : remove unnecessary includes #

Total comments: 2

Patch Set 4 : SkRef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -4 lines) Patch
M content/renderer/renderer_main_platform_delegate_win.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M skia/BUILD.gn View 1 2 chunks +2 lines, -1 line 0 comments Download
A skia/ext/fontmgr_default_win.h View 1 chunk +14 lines, -0 lines 0 comments Download
A skia/ext/fontmgr_default_win.cc View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
M skia/skia_chrome.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M skia/skia_gn_files.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M skia/skia_library.gypi View 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
scottmg
https://codereview.chromium.org/344653002/diff/1/content/renderer/renderer_main_platform_delegate_win.cc File content/renderer/renderer_main_platform_delegate_win.cc (right): https://codereview.chromium.org/344653002/diff/1/content/renderer/renderer_main_platform_delegate_win.cc#newcode64 content/renderer/renderer_main_platform_delegate_win.cc:64: SetDefaultSkiaFactory(GetPreSandboxWarmupFontMgr()); this has to be set from here rather ...
6 years, 6 months ago (2014-06-18 19:08:31 UTC) #1
bungeman-skia
https://codereview.chromium.org/344653002/diff/20001/skia/ext/fontmgr_default_win.cc File skia/ext/fontmgr_default_win.cc (right): https://codereview.chromium.org/344653002/diff/20001/skia/ext/fontmgr_default_win.cc#newcode8 skia/ext/fontmgr_default_win.cc:8: #include "content/public/renderer/render_font_warmup_win.h" Isn't part of the point of this ...
6 years, 6 months ago (2014-06-18 19:21:36 UTC) #2
scottmg
https://codereview.chromium.org/344653002/diff/20001/skia/ext/fontmgr_default_win.cc File skia/ext/fontmgr_default_win.cc (right): https://codereview.chromium.org/344653002/diff/20001/skia/ext/fontmgr_default_win.cc#newcode8 skia/ext/fontmgr_default_win.cc:8: #include "content/public/renderer/render_font_warmup_win.h" On 2014/06/18 19:21:35, bungeman1 wrote: > Isn't ...
6 years, 6 months ago (2014-06-18 19:30:55 UTC) #3
jamesr
lgtm
6 years, 6 months ago (2014-06-18 19:36:46 UTC) #4
bungeman-skia
https://codereview.chromium.org/344653002/diff/40001/skia/ext/fontmgr_default_win.cc File skia/ext/fontmgr_default_win.cc (right): https://codereview.chromium.org/344653002/diff/40001/skia/ext/fontmgr_default_win.cc#newcode25 skia/ext/fontmgr_default_win.cc:25: return g_default_fontmgr; Note that SkFontMgr is SkRefCnt, so it ...
6 years, 6 months ago (2014-06-18 19:49:36 UTC) #5
scottmg
https://codereview.chromium.org/344653002/diff/40001/skia/ext/fontmgr_default_win.cc File skia/ext/fontmgr_default_win.cc (right): https://codereview.chromium.org/344653002/diff/40001/skia/ext/fontmgr_default_win.cc#newcode25 skia/ext/fontmgr_default_win.cc:25: return g_default_fontmgr; On 2014/06/18 19:49:36, bungeman1 wrote: > Note ...
6 years, 6 months ago (2014-06-18 20:02:49 UTC) #6
bungeman-skia
On 2014/06/18 20:02:49, scottmg wrote: > https://codereview.chromium.org/344653002/diff/40001/skia/ext/fontmgr_default_win.cc > File skia/ext/fontmgr_default_win.cc (right): > > https://codereview.chromium.org/344653002/diff/40001/skia/ext/fontmgr_default_win.cc#newcode25 > ...
6 years, 6 months ago (2014-06-18 20:04:41 UTC) #7
jamesr
On 2014/06/18 19:49:36, bungeman1 wrote: > https://codereview.chromium.org/344653002/diff/40001/skia/ext/fontmgr_default_win.cc > File skia/ext/fontmgr_default_win.cc (right): > > https://codereview.chromium.org/344653002/diff/40001/skia/ext/fontmgr_default_win.cc#newcode25 > ...
6 years, 6 months ago (2014-06-18 20:06:52 UTC) #8
scottmg
On 2014/06/18 20:06:52, jamesr wrote: > On 2014/06/18 19:49:36, bungeman1 wrote: > > > https://codereview.chromium.org/344653002/diff/40001/skia/ext/fontmgr_default_win.cc ...
6 years, 6 months ago (2014-06-18 20:12:06 UTC) #9
scottmg
The CQ bit was checked by scottmg@chromium.org
6 years, 6 months ago (2014-06-18 20:12:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/344653002/60001
6 years, 6 months ago (2014-06-18 20:13:51 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 01:20:15 UTC) #12
Message was sent while issue was closed.
Change committed as 278222

Powered by Google App Engine
This is Rietveld 408576698