Index: src/ports/SkFontMgr_fontconfig.cpp |
diff --git a/src/ports/SkFontMgr_fontconfig.cpp b/src/ports/SkFontMgr_fontconfig.cpp |
index 393265c54260a30a203ff953eaff8c380515621b..85850c24098c4a061bac759bab81cd5308b9365f 100644 |
--- a/src/ports/SkFontMgr_fontconfig.cpp |
+++ b/src/ports/SkFontMgr_fontconfig.cpp |
@@ -564,7 +564,7 @@ class SkFontMgr_fontconfig : public SkFontMgr { |
sizes.begin(), names.count()); |
} |
- static bool FindByFcPattern(SkTypeface* cached, const SkFontStyle&, void* ctx) { |
+ static bool FindByFcPattern(SkTypeface* cached, void* ctx) { |
SkTypeface_fontconfig* cshFace = static_cast<SkTypeface_fontconfig*>(cached); |
FcPattern* ctxPattern = static_cast<FcPattern*>(ctx); |
return FcTrue == FcPatternEqual(cshFace->fPattern, ctxPattern); |
@@ -583,7 +583,7 @@ class SkFontMgr_fontconfig : public SkFontMgr { |
FcPatternReference(pattern); |
face = SkTypeface_fontconfig::Create(pattern); |
if (face) { |
- fTFCache.add(face, SkFontStyle()); |
+ fTFCache.add(face); |
} |
} |
return face; |