mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
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:
parent
457659e8e8
commit
55db25cdd9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user