Bug 1595994 - P11. Don't unnecessarily create the RemoteDecoderManagerChild thread. r=mattwoodrow

This is no longer required now that the RemoteDecoderManagerChild manages decoder creation

Depends on D56857

Differential Revision: https://phabricator.services.mozilla.com/D91688
This commit is contained in:
Jean-Yves Avenard 2020-10-20 23:27:36 +00:00
Родитель 73eb04fe2b
Коммит 72a2e74943
4 изменённых файлов: 1 добавлений и 12 удалений

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

@ -66,7 +66,6 @@ class RemoteDecoderManagerChild final
bool DeallocShmem(mozilla::ipc::Shmem& aShmem) override;
// Main thread only
static void InitializeThread();
static void InitForRDDProcess(
Endpoint<PRemoteDecoderManagerChild>&& aVideoManager);
static void InitForGPUProcess(
@ -103,6 +102,7 @@ class RemoteDecoderManagerChild final
Endpoint<PRemoteDecoderManagerChild>&& aEndpoint);
static void OpenForGPUProcess(
Endpoint<PRemoteDecoderManagerChild>&& aEndpoint);
static void InitializeThread();
RefPtr<RemoteDecoderManagerChild> mIPDLSelfRef;

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

@ -29,15 +29,6 @@ namespace mozilla {
using namespace ipc;
using namespace layers;
/* static */
void RemoteDecoderModule::Init() {
MOZ_ASSERT(NS_IsMainThread());
if (BrowserTabsRemoteAutostart()) {
RemoteDecoderManagerChild::InitializeThread();
}
}
already_AddRefed<PlatformDecoderModule> RemoteDecoderModule::Create(
RemoteDecodeIn aLocation) {
MOZ_ASSERT(!XRE_IsGPUProcess() && !XRE_IsRDDProcess(),

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

@ -17,7 +17,6 @@ class RemoteDecoderModule : public PlatformDecoderModule {
friend already_AddRefed<T> MakeAndAddRef(Args&&...);
public:
static void Init();
static already_AddRefed<PlatformDecoderModule> Create(
RemoteDecodeIn aLocation);

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

@ -73,7 +73,6 @@ class PDMFactoryImpl final {
#ifdef MOZ_FFMPEG
FFmpegRuntimeLinker::Init();
#endif
RemoteDecoderModule::Init();
}
};