Ensure gfx-related services are started and shutdown properly in the GPU process. (bug 1294350 part 1, r=rhunt)

This commit is contained in:
David Anderson 2016-08-13 12:25:18 -07:00
Родитель 4257f1eff2
Коммит 7d910bdf74
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -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();
}