18 RetainPtr<CFX_Face> face = pFont->GetFace();
19 const bool bExternal = !face;
20 auto& map = bExternal ? m_ExtGlyphCacheMap : m_GlyphCacheMap;
21 auto it = map.find(face.Get());
22 if (it != map.end() && it->second)
23 return pdfium::WrapRetain(it->second.Get());
25 auto new_cache = pdfium::MakeRetain<CFX_GlyphCache>(face);
26 map[face.Get()].Reset(new_cache.Get());