Bug 1417442 - P4. Indicate surface type in decoder description. r=mattwoodrow

MozReview-Commit-ID: 3RXdPMfr7O

--HG--
extra : rebase_source : e80dc9523e998be4d00b16ef58a3d93bd924bea3
This commit is contained in:
Jean-Yves Avenard 2017-11-15 23:33:37 +01:00
parent 457659e8e8
commit 55db25cdd9

View File

@ -1248,9 +1248,14 @@ WMFVideoMFTManager::GetDescriptionName() const
if (mAMDVP9InUse) {
return NS_LITERAL_CSTRING("amd vp9 hardware video decoder");
}
return nsPrintfCString("wmf %s video decoder",
IsHardwareAccelerated(failureReason) ? "hardware"
: "software");
bool hw = IsHardwareAccelerated(failureReason);
return nsPrintfCString("wmf %s video decoder - %s",
hw ? "hardware" : "software",
hw ? gfxPrefs::PDMWMFUseNV12Format() &&
gfx::DeviceManagerDx::Get()->CanUseNV12()
? "nv12"
: "rgba32"
: "yuv420");
}
} // namespace mozilla