Bug 1248496 - Show which DXVA API is being used in about:support. r=jya

This commit is contained in:
Matt Woodrow 2016-02-18 15:41:11 +13:00
parent dbe7f4888a
commit 231647cca3
2 changed files with 12 additions and 4 deletions

View File

@ -270,10 +270,10 @@ MP4Decoder::IsVideoAccelerated(layers::LayersBackend aBackend, nsIGlobalObject*
result.AssignLiteral("Yes");
} else {
result.AssignLiteral("No");
if (failureReason.Length()) {
result.AppendLiteral("; ");
AppendUTF8toUTF16(failureReason, result);
}
}
if (failureReason.Length()) {
result.AppendLiteral("; ");
AppendUTF8toUTF16(failureReason, result);
}
decoder->Shutdown();
taskQueue->BeginShutdown();

View File

@ -216,6 +216,14 @@ WMFVideoMFTManager::Init()
mDXVAFailureReason.Append(d3d11Failure);
}
if (success && mDXVA2Manager) {
if (mDXVA2Manager->IsD3D11()) {
mDXVAFailureReason.AssignLiteral("Using D3D11 API");
} else {
mDXVAFailureReason.AssignLiteral("Using D3D9 API");
}
}
return success;
}