Bug 1595994 - P1B. Make WMF DXVA decoding work in the RDD process. r=mattwoodrow

Depends on D91698

Differential Revision: https://phabricator.services.mozilla.com/D91700
This commit is contained in:
Jean-Yves Avenard 2020-10-20 23:29:23 +00:00
Родитель 38bf12582e
Коммит 25887bb634
1 изменённых файлов: 1 добавлений и 8 удалений

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

@ -49,15 +49,8 @@ KnowsCompositorVideo::TryCreateForIdentifier(
return nullptr;
}
// The RDD process will never use hardware decoding since it's
// sandboxed, so don't bother trying to create a sync object.
TextureFactoryIdentifier ident = aIdentifier;
if (XRE_IsRDDProcess()) {
ident.mSyncHandle = 0;
}
RefPtr<KnowsCompositorVideo> knowsCompositor = new KnowsCompositorVideo();
knowsCompositor->IdentifyTextureHost(ident);
knowsCompositor->IdentifyTextureHost(aIdentifier);
return knowsCompositor.forget();
}