| 142 | }; |
| 143 | |
| 144 | static HBLockedFontCache GetHBFontCache() { |
| 145 | static auto HBFontCacheMutex = new std::mutex(); |
| 146 | static auto HBFontLRU = new std::list<uint32_t>(); |
| 147 | static auto HBFontCache = new std::map<uint32_t, std::shared_ptr<hb_font_t>>(); |
| 148 | return {HBFontLRU, HBFontCache, HBFontCacheMutex}; |
| 149 | } |
| 150 | |
| 151 | static std::shared_ptr<hb_font_t> CreateHBFont(const std::shared_ptr<Typeface>& typeface) { |
| 152 | auto cache = GetHBFontCache(); |
no outgoing calls
no test coverage detected