зеркало из https://github.com/mozilla/gecko-dev.git
Ensure gfx-related services are started and shutdown properly in the GPU process. (bug 1294350 part 1, r=rhunt)
This commit is contained in:
Родитель
4257f1eff2
Коммит
7d910bdf74
|
@ -43,6 +43,7 @@ GPUParent::Init(base::ProcessId aParentPid,
|
|||
|
||||
// Ensure gfxPrefs are initialized.
|
||||
gfxPrefs::GetSingleton();
|
||||
gfxConfig::Init();
|
||||
gfxVars::Initialize();
|
||||
CompositorThreadHolder::Start();
|
||||
VRManager::ManagerInit();
|
||||
|
@ -162,6 +163,9 @@ GPUParent::ActorDestroy(ActorDestroyReason aWhy)
|
|||
mVsyncBridge->Shutdown();
|
||||
}
|
||||
CompositorThreadHolder::Shutdown();
|
||||
gfxVars::Shutdown();
|
||||
gfxConfig::Shutdown();
|
||||
gfxPrefs::DestroySingleton();
|
||||
XRE_ShutdownChildProcess();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче