aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ports
diff options
context:
space:
mode:
authorGravatar kulshin <kulshin@chromium.org>2016-04-15 08:20:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-15 08:20:46 -0700
commit82497f9300432375cb9fd0e0ceca011ea7dce847 (patch)
tree51a9b7d24fdda79cc86916ac10e47f51434b0ded /include/ports
parent7a9b9aff1a7706abf5245008814e2e38a2c90f1f (diff)
Add option to specify font fallback when creating the skia font manager
This originally existed as https://codereview.chromium.org/1740533003/, but then got reverted for causing perf problems at startup. This change avoids that by allowing callers to specify their own font fallback, and only uses the system fallback if a fallback is needed and none was provided. This is part 1 of a three part change. 1: https://codereview.chromium.org/1878843002/ Adds support for specifying a font fallback in skia 2: https://codereview.chromium.org/1846433005/ Implements the fallback proxy in Chromium 3: https://codereview.chromium.org/1883483002/ Adds code to blink to call skia's fallback API GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1878843002 Review URL: https://codereview.chromium.org/1878843002
Diffstat (limited to 'include/ports')
-rw-r--r--include/ports/SkTypeface_win.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ports/SkTypeface_win.h b/include/ports/SkTypeface_win.h
index da728ca3c0..e18ed93341 100644
--- a/include/ports/SkTypeface_win.h
+++ b/include/ports/SkTypeface_win.h
@@ -41,10 +41,14 @@ class SkFontMgr;
class SkRemotableFontMgr;
struct IDWriteFactory;
struct IDWriteFontCollection;
+struct IDWriteFontFallback;
SK_API SkFontMgr* SkFontMgr_New_GDI();
SK_API SkFontMgr* SkFontMgr_New_DirectWrite(IDWriteFactory* factory = NULL,
IDWriteFontCollection* collection = NULL);
+SK_API SkFontMgr* SkFontMgr_New_DirectWrite(IDWriteFactory* factory,
+ IDWriteFontCollection* collection,
+ IDWriteFontFallback* fallback);
/**
* Creates an SkFontMgr which renders using DirectWrite and obtains its data