Bug 1415609 - ensure the GPU process initializes the FreeType library. r=jrmuizel

MozReview-Commit-ID: 50a6TBdKnVg
This commit is contained in:
Lee Salzman 2017-11-08 16:40:20 -05:00
Родитель e3806002a1
Коммит 3699fb8ded
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -213,6 +213,15 @@ GPUParent::RecvInit(nsTArray<GfxPrefSetting>&& prefs,
} else {
gtk_init(nullptr, nullptr);
}
// Ensure we have an FT library for font instantiation.
// This would normally be set by gfxPlatform::Init().
// Since we bypass that, we must do it here instead.
if (gfxVars::UseWebRender()) {
FT_Library library = Factory::NewFTLibrary();
MOZ_ASSERT(library);
Factory::SetFTLibrary(library);
}
#endif
// Make sure to do this *after* we update gfxVars above.