Index: src/ports/SkFontMgr_win_dw.cpp |
diff --git a/src/ports/SkFontMgr_win_dw.cpp b/src/ports/SkFontMgr_win_dw.cpp |
index a03fcf8d426e0690e99f566f8c07fba9a4d661a5..e178598a55a08084957e3f4600be59a911679fe1 100644 |
--- a/src/ports/SkFontMgr_win_dw.cpp |
+++ b/src/ports/SkFontMgr_win_dw.cpp |
@@ -353,7 +353,7 @@ struct ProtoDWriteTypeface { |
IDWriteFontFamily* fDWriteFontFamily; |
}; |
-static bool FindByDWriteFont(SkTypeface* cached, const SkFontStyle&, void* ctx) { |
+static bool FindByDWriteFont(SkTypeface* cached, void* ctx) { |
DWriteFontTypeface* cshFace = reinterpret_cast<DWriteFontTypeface*>(cached); |
ProtoDWriteTypeface* ctxFace = reinterpret_cast<ProtoDWriteTypeface*>(ctx); |
bool same; |
@@ -457,7 +457,7 @@ SkTypeface* SkFontMgr_DirectWrite::createTypefaceFromDWriteFont( |
if (nullptr == face) { |
face = DWriteFontTypeface::Create(fFactory.get(), fontFace, font, fontFamily); |
if (face) { |
- fTFCache.add(face, get_style(font)); |
+ fTFCache.add(face); |
} |
} |
return face; |