Chromium Code Reviews| Index: src/ports/SkFontHost_win_dw.cpp |
| diff --git a/src/ports/SkFontHost_win_dw.cpp b/src/ports/SkFontHost_win_dw.cpp |
| index 5df90b47f387cace1fbf35211e39500763eccc64..b8ad08975911d9fce9b378d25208af62c3e81174 100644 |
| --- a/src/ports/SkFontHost_win_dw.cpp |
| +++ b/src/ports/SkFontHost_win_dw.cpp |
| @@ -709,7 +709,7 @@ SkTypeface* SkCreateTypefaceFromDWriteFont(IDWriteFontFace* fontFace, |
| IDWriteFontFamily* fontFamily, |
| StreamFontFileLoader* fontFileLoader = NULL, |
| IDWriteFontCollectionLoader* fontCollectionLoader = NULL) { |
| - SkTypeface* face = SkTypefaceCache::FindByProcAndRef(FindByDWriteFont, font); |
| + SkTypeface* face = NULL; //SkTypefaceCache::FindByProcAndRef(FindByDWriteFont, font); |
|
bungeman-skia
2013/08/13 13:51:54
Need a todo to use a local cache.
reed1
2013/08/13 15:28:27
Done.
|
| if (NULL == face) { |
| face = DWriteFontTypeface::Create(fontFace, font, fontFamily, |
| fontFileLoader, fontCollectionLoader); |
| @@ -1850,7 +1850,8 @@ SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream* stream) { |
| #endif |
| -SkFontMgr* SkFontMgr::Factory() { |
| +extern SkFontMgr* SkFontMgr_New_DirectWrite(); |
| +SkFontMgr* SkFontMgr_New_DirectWrite() { |
| IDWriteFactory* factory; |
| HRNM(get_dwrite_factory(&factory), "Could not get factory."); |
| @@ -1867,3 +1868,4 @@ SkFontMgr* SkFontMgr::Factory() { |
| return SkNEW_ARGS(SkFontMgr_DirectWrite, (sysFontCollection.get(), localeName, localeNameLen)); |
| } |
| + |