зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
38bf12582e
Коммит
25887bb634
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче