SkFontMgr* SkFontMgr::Factory() { // These globals exist so that Chromium can override the environment. // TODO: these globals need to be removed, and Chromium use SkFontMgr_New_Android instead. if ((gTestFontsXml || gTestFallbackFontsXml) && gTestBasePath) { SkFontMgr_Android_CustomFonts custom = { SkFontMgr_Android_CustomFonts::kOnlyCustom, gTestBasePath, gTestFontsXml, gTestFallbackFontsXml }; return SkFontMgr_New_Android(&custom); } return SkFontMgr_New_Android(NULL); }
sk_sp<SkFontMgr> SkFontMgr::Factory() { return SkFontMgr_New_Android(nullptr); }