Bug 1357299 - P6: Turn on DXVA with LAYERS_WR and ANGLE backend. v2. r=mattwoodrow

MozReview-Commit-ID: EOOp0Dzenub
This commit is contained in:
JerryShih 2017-08-07 18:15:23 +08:00
Родитель 6528324a47
Коммит 0556445e64
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -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)