зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1357299 - P6: Turn on DXVA with LAYERS_WR and ANGLE backend. v2. r=mattwoodrow
MozReview-Commit-ID: EOOp0Dzenub
This commit is contained in:
Родитель
6528324a47
Коммит
0556445e64
|
@ -449,7 +449,10 @@ WMFVideoMFTManager::InitializeDXVA()
|
|||
}
|
||||
MOZ_ASSERT(!mDXVA2Manager);
|
||||
LayersBackend backend = GetCompositorBackendType(mKnowsCompositor);
|
||||
if (backend != LayersBackend::LAYERS_D3D11) {
|
||||
bool useANGLE =
|
||||
mKnowsCompositor ? mKnowsCompositor->GetCompositorUseANGLE() : false;
|
||||
bool wrWithANGLE = (backend == LayersBackend::LAYERS_WR) && useANGLE;
|
||||
if (backend != LayersBackend::LAYERS_D3D11 && !wrWithANGLE) {
|
||||
mDXVAFailureReason.AssignLiteral("Unsupported layers backend");
|
||||
return false;
|
||||
}
|
||||
|
@ -934,7 +937,7 @@ WMFVideoMFTManager::CreateD3DVideoFrame(IMFSample* aSample,
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
// Blocks until decoded sample is produced by the deoder.
|
||||
// Blocks until decoded sample is produced by the decoder.
|
||||
HRESULT
|
||||
WMFVideoMFTManager::Output(int64_t aStreamOffset,
|
||||
RefPtr<MediaData>& aOutData)
|
||||
|
|
Загрузка…
Ссылка в новой задаче