зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1559675 - P2. Initialise xpcom earlier in GPU process. r=mattwoodrow
StaticPrefs are fully initialized with Preferences, which is instantiated via XPCOM. It is required as such to initialize xpcom first. Depends on D35263 Differential Revision: https://phabricator.services.mozilla.com/D35264 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
01ac9fc00f
Коммит
139dde3db5
|
@ -107,6 +107,10 @@ bool GPUParent::Init(base::ProcessId aParentPid, const char* aParentBuildID,
|
|||
ProcessChild::QuickExit();
|
||||
}
|
||||
|
||||
if (NS_FAILED(NS_InitMinimalXPCOM())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Init crash reporter support.
|
||||
CrashReporterClient::InitSingleton(this);
|
||||
|
||||
|
@ -120,10 +124,6 @@ bool GPUParent::Init(base::ProcessId aParentPid, const char* aParentBuildID,
|
|||
DeviceManagerDx::Init();
|
||||
#endif
|
||||
|
||||
if (NS_FAILED(NS_InitMinimalXPCOM())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
CompositorThreadHolder::Start();
|
||||
APZThreadUtils::SetControllerThread(MessageLoop::current());
|
||||
apz::InitializeGlobalState();
|
||||
|
|
Загрузка…
Ссылка в новой задаче