aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkRemotableFontMgr_win_dw.cpp
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2014-11-10 13:29:33 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-10 13:29:33 -0800
commitc9232dcda016feb2d30abb51483b3b1862775f84 (patch)
tree90d05cb259ca41c106dd51f21e93789f2225a587 /src/ports/SkRemotableFontMgr_win_dw.cpp
parentb61e206138607423e83ba34d823c6036f394f655 (diff)
Remove SK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER.
This removes the old guarded code and enables the new api introduced with "Update fontMgr to take list of bcp47 language tags." c20386e3937d3d398ac9b35f9c7d997e972ade98 . Blink on Android is already using the new code. Review URL: https://codereview.chromium.org/705843004
Diffstat (limited to 'src/ports/SkRemotableFontMgr_win_dw.cpp')
-rw-r--r--src/ports/SkRemotableFontMgr_win_dw.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/ports/SkRemotableFontMgr_win_dw.cpp b/src/ports/SkRemotableFontMgr_win_dw.cpp
index 498f21f012..2f02e4bcaa 100644
--- a/src/ports/SkRemotableFontMgr_win_dw.cpp
+++ b/src/ports/SkRemotableFontMgr_win_dw.cpp
@@ -408,21 +408,11 @@ public:
SkFontIdentity fIdentity;
};
-#ifdef SK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER
virtual SkFontIdentity matchNameStyleCharacter(const char familyName[],
const SkFontStyle& pattern,
const char* bcp47[], int bcp47Count,
SkUnichar character) const SK_OVERRIDE
{
-#else
- virtual SkFontIdentity matchNameStyleCharacter(const char familyName[],
- const SkFontStyle& pattern,
- const char bcp47_val[],
- SkUnichar character) const SK_OVERRIDE
- {
- const char** bcp47 = &bcp47_val;
- int bcp47Count = bcp47_val ? 1 : 0;
-#endif
SkFontIdentity identity = { SkFontIdentity::kInvalidDataId };
IDWriteFactory* dwFactory = sk_get_dwrite_factory();