diff --git a/content/media/fmp4/MP4Reader.cpp b/content/media/fmp4/MP4Reader.cpp index ab8ccc0d688..7b5d036384c 100644 --- a/content/media/fmp4/MP4Reader.cpp +++ b/content/media/fmp4/MP4Reader.cpp @@ -145,7 +145,7 @@ MP4Reader::InitLayersBackendType() nsContentUtils::LayerManagerForDocument(element->OwnerDoc()); NS_ENSURE_TRUE_VOID(layerManager); - mLayersBackendType = layerManager->GetBackendType(); + mLayersBackendType = layerManager->GetCompositorBackendType(); } nsresult diff --git a/content/media/fmp4/wmf/WMFVideoOutputSource.cpp b/content/media/fmp4/wmf/WMFVideoOutputSource.cpp index f4397536614..b2e39ba9287 100644 --- a/content/media/fmp4/wmf/WMFVideoOutputSource.cpp +++ b/content/media/fmp4/wmf/WMFVideoOutputSource.cpp @@ -69,7 +69,8 @@ WMFVideoOutputSource::InitializeDXVA() // to a halt, and makes playback performance *worse*. if (!mDXVAEnabled || (mLayersBackend != LayersBackend::LAYERS_D3D9 && - mLayersBackend != LayersBackend::LAYERS_D3D10)) { + mLayersBackend != LayersBackend::LAYERS_D3D10 && + mLayersBackend != LayersBackend::LAYERS_D3D11)) { return false; } diff --git a/content/media/wmf/WMFReader.cpp b/content/media/wmf/WMFReader.cpp index 59fb69b9c63..b9e5dead12e 100644 --- a/content/media/wmf/WMFReader.cpp +++ b/content/media/wmf/WMFReader.cpp @@ -103,8 +103,10 @@ WMFReader::InitializeDXVA() nsContentUtils::LayerManagerForDocument(element->OwnerDoc()); NS_ENSURE_TRUE(layerManager, false); - if (layerManager->GetBackendType() != LayersBackend::LAYERS_D3D9 && - layerManager->GetBackendType() != LayersBackend::LAYERS_D3D10) { + LayersBackend backend = layerManager->GetCompositorBackendType(); + if (backend != LayersBackend::LAYERS_D3D9 && + backend != LayersBackend::LAYERS_D3D10 && + backend != LayersBackend::LAYERS_D3D11) { return false; }