mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Bug 1333122 - Start and stop the RenderThread in any webrender-enabled builds. r=nical
MozReview-Commit-ID: BzjJbnl58xw
This commit is contained in:
parent
0d92c556b9
commit
ce97934624
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user