Bug 1333122 - Start and stop the RenderThread in any webrender-enabled builds. r=nical

MozReview-Commit-ID: BzjJbnl58xw
This commit is contained in:
Kartikaya Gupta 2017-01-24 08:03:08 -05:00
parent 0d92c556b9
commit ce97934624

View File

@ -941,9 +941,9 @@ gfxPlatform::InitLayersIPC()
if (XRE_IsParentProcess())
{
if (gfxPrefs::WebRenderEnabled()) {
wr::RenderThread::Start();
}
#ifdef MOZ_ENABLE_WEBRENDER
wr::RenderThread::Start();
#endif
layers::CompositorThreadHolder::Start();
}
}
@ -972,9 +972,9 @@ gfxPlatform::ShutdownLayersIPC()
#endif // defined(MOZ_WIDGET_ANDROID)
// This has to happen after shutting down the child protocols.
layers::CompositorThreadHolder::Shutdown();
if (gfxPrefs::WebRenderEnabled()) {
wr::RenderThread::ShutDown();
}
#ifdef MOZ_ENABLE_WEBRENDER
wr::RenderThread::ShutDown();
#endif
} else {
// TODO: There are other kind of processes and we should make sure gfx
// stuff is either not created there or shut down properly.