mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 904890 - Part 4: Enable hardware accelerated video decoding for OMTC+D3D9/11. r=cpearce
This commit is contained in:
parent
e205c4c136
commit
1decbcaebc
@ -145,7 +145,7 @@ MP4Reader::InitLayersBackendType()
|
|||||||
nsContentUtils::LayerManagerForDocument(element->OwnerDoc());
|
nsContentUtils::LayerManagerForDocument(element->OwnerDoc());
|
||||||
NS_ENSURE_TRUE_VOID(layerManager);
|
NS_ENSURE_TRUE_VOID(layerManager);
|
||||||
|
|
||||||
mLayersBackendType = layerManager->GetBackendType();
|
mLayersBackendType = layerManager->GetCompositorBackendType();
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
|
@ -69,7 +69,8 @@ WMFVideoOutputSource::InitializeDXVA()
|
|||||||
// to a halt, and makes playback performance *worse*.
|
// to a halt, and makes playback performance *worse*.
|
||||||
if (!mDXVAEnabled ||
|
if (!mDXVAEnabled ||
|
||||||
(mLayersBackend != LayersBackend::LAYERS_D3D9 &&
|
(mLayersBackend != LayersBackend::LAYERS_D3D9 &&
|
||||||
mLayersBackend != LayersBackend::LAYERS_D3D10)) {
|
mLayersBackend != LayersBackend::LAYERS_D3D10 &&
|
||||||
|
mLayersBackend != LayersBackend::LAYERS_D3D11)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,8 +103,10 @@ WMFReader::InitializeDXVA()
|
|||||||
nsContentUtils::LayerManagerForDocument(element->OwnerDoc());
|
nsContentUtils::LayerManagerForDocument(element->OwnerDoc());
|
||||||
NS_ENSURE_TRUE(layerManager, false);
|
NS_ENSURE_TRUE(layerManager, false);
|
||||||
|
|
||||||
if (layerManager->GetBackendType() != LayersBackend::LAYERS_D3D9 &&
|
LayersBackend backend = layerManager->GetCompositorBackendType();
|
||||||
layerManager->GetBackendType() != LayersBackend::LAYERS_D3D10) {
|
if (backend != LayersBackend::LAYERS_D3D9 &&
|
||||||
|
backend != LayersBackend::LAYERS_D3D10 &&
|
||||||
|
backend != LayersBackend::LAYERS_D3D11) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user