aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ports/SkTypeface_win.h
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-31 19:18:07 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-31 19:18:07 +0000
commit6eddc77f6a0078570471277954c07d73b3a921d8 (patch)
treea2050286bf178ef2e6db3231dcab663d5f77af8d /include/ports/SkTypeface_win.h
parent35c03fbf101306e8e82141853de4c664cbafedbb (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.h3
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