Index: src/ports/SkFontHost_win.cpp |
diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp |
index 348246b89329d49fb481aafe9365ecd1139f1cdc..89bac5daf4a7c75ce86b253c5dd527f80e3bf7e0 100755 |
--- a/src/ports/SkFontHost_win.cpp |
+++ b/src/ports/SkFontHost_win.cpp |
@@ -338,9 +338,8 @@ SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT& origLF) { |
SkTypeface* SkCreateFontMemResourceTypefaceFromLOGFONT(const LOGFONT& origLF, HANDLE fontMemResource) { |
LOGFONT lf = origLF; |
make_canonical(&lf); |
- FontMemResourceTypeface* face = FontMemResourceTypeface::Create(lf, fontMemResource); |
- SkTypefaceCache::Add(face, get_style(lf), false); |
- return face; |
+ // We'll never get a cache hit, so no point in putting this in SkTypefaceCache. |
+ return FontMemResourceTypeface::Create(lf, fontMemResource); |
} |
/** |