diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-31 19:18:07 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-31 19:18:07 +0000 |
commit | 6eddc77f6a0078570471277954c07d73b3a921d8 (patch) | |
tree | a2050286bf178ef2e6db3231dcab663d5f77af8d /include/ports/SkTypeface_win.h | |
parent | 35c03fbf101306e8e82141853de4c664cbafedbb (diff) |
Pass the IDWriteFactory instead of relying on a global creator.
There are different variations or implementations of IDWriteFactory
with different behaviors. Allow the user to specify the factory to use.
R=scottmg@chromium.org
Review URL: https://codereview.chromium.org/218833005
git-svn-id: http://skia.googlecode.com/svn/trunk@14000 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/ports/SkTypeface_win.h')
-rw-r--r-- | include/ports/SkTypeface_win.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ports/SkTypeface_win.h b/include/ports/SkTypeface_win.h index 77173e2cf7..07752d82f9 100644 --- a/include/ports/SkTypeface_win.h +++ b/include/ports/SkTypeface_win.h @@ -37,9 +37,10 @@ SK_API void SkTypeface_SetEnsureLOGFONTAccessibleProc(void (*)(const LOGFONT&)); // class SkFontMgr; class SkRemotableFontMgr; +struct IDWriteFactory; SK_API SkFontMgr* SkFontMgr_New_GDI(); -SK_API SkFontMgr* SkFontMgr_New_DirectWrite(); +SK_API SkFontMgr* SkFontMgr_New_DirectWrite(IDWriteFactory* factory = NULL); /** * Creates an SkFontMgr which renders using DirectWrite and obtains its data |