зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1118603 - clear out font/word caches when initializing platform fontlists. r=m_kato
This commit is contained in:
Родитель
49d793eefc
Коммит
70d4fa9adb
|
@ -896,11 +896,6 @@ gfxDWriteFontList::InitFontList()
|
|||
QueryPerformanceCounter(&t1);
|
||||
|
||||
HRESULT hr;
|
||||
gfxFontCache *fc = gfxFontCache::GetCache();
|
||||
if (fc) {
|
||||
fc->AgeAllGenerations();
|
||||
}
|
||||
|
||||
mGDIFontTableAccess = Preferences::GetBool("gfx.font_rendering.directwrite.use_gdi_table_loading", false);
|
||||
|
||||
gfxPlatformFontList::InitFontList();
|
||||
|
|
|
@ -656,9 +656,6 @@ nsresult
|
|||
gfxGDIFontList::InitFontList()
|
||||
{
|
||||
Telemetry::AutoTimer<Telemetry::GDI_INITFONTLIST_TOTAL> timer;
|
||||
gfxFontCache *fc = gfxFontCache::GetCache();
|
||||
if (fc)
|
||||
fc->AgeAllGenerations();
|
||||
|
||||
// reset font lists
|
||||
gfxPlatformFontList::InitFontList();
|
||||
|
|
|
@ -199,6 +199,13 @@ gfxPlatformFontList::~gfxPlatformFontList()
|
|||
nsresult
|
||||
gfxPlatformFontList::InitFontList()
|
||||
{
|
||||
// rebuilding fontlist so clear out font/word caches
|
||||
gfxFontCache *fontCache = gfxFontCache::GetCache();
|
||||
if (fontCache) {
|
||||
fontCache->AgeAllGenerations();
|
||||
fontCache->FlushShapedWordCaches();
|
||||
}
|
||||
|
||||
mFontFamilies.Clear();
|
||||
mOtherFamilyNames.Clear();
|
||||
mOtherFamilyNamesInitialized = false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче