Bug 1335658 - Init RenderThread in GPUParent r=nical,kats

This commit is contained in:
sotaro 2017-02-03 10:22:49 +09:00
Родитель 5ff8632da8
Коммит 9365cc91a5
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -28,6 +28,7 @@
#include "mozilla/layers/ImageBridgeParent.h"
#include "mozilla/layers/LayerTreeOwnerTracker.h"
#include "mozilla/layers/UiCompositorControllerParent.h"
#include "mozilla/webrender/RenderThread.h"
#include "nsDebugImpl.h"
#include "nsExceptionHandler.h"
#include "nsThreadManager.h"
@ -109,6 +110,9 @@ GPUParent::Init(base::ProcessId aParentPid,
return false;
}
#ifdef MOZ_ENABLE_WEBRENDER
wr::RenderThread::Start();
#endif
CompositorThreadHolder::Start();
APZThreadUtils::SetControllerThread(CompositorThreadHolder::Loop());
APZCTreeManager::InitializeGlobalState();
@ -411,6 +415,9 @@ GPUParent::ActorDestroy(ActorDestroyReason aWhy)
}
dom::VideoDecoderManagerParent::ShutdownVideoBridge();
CompositorThreadHolder::Shutdown();
#ifdef MOZ_ENABLE_WEBRENDER
wr::RenderThread::ShutDown();
#endif
Factory::ShutDown();
#if defined(XP_WIN)
DeviceManagerDx::Shutdown();