зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1415609 - ensure the GPU process initializes the FreeType library. r=jrmuizel
MozReview-Commit-ID: 50a6TBdKnVg
This commit is contained in:
Родитель
e3806002a1
Коммит
3699fb8ded
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче