Bug 1417442 - P4. Indicate surface type in decoder description. r?mattwoodrow draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Wed, 15 Nov 2017 23:33:37 +0100
changeset 699105 83ccc24b4d86
parent 699104 994983fae251
child 740539 b23dbf4d29ca
push id89468
push userbmo:jyavenard@mozilla.com
push dateThu, 16 Nov 2017 17:28:05 +0000
reviewersmattwoodrow
bugs1417442
milestone59.0a1
Bug 1417442 - P4. Indicate surface type in decoder description. r?mattwoodrow MozReview-Commit-ID: 3RXdPMfr7O
dom/media/platforms/wmf/WMFVideoMFTManager.cpp
--- a/dom/media/platforms/wmf/WMFVideoMFTManager.cpp
+++ b/dom/media/platforms/wmf/WMFVideoMFTManager.cpp
@@ -1243,14 +1243,19 @@ WMFVideoMFTManager::IsHardwareAccelerate
 
 nsCString
 WMFVideoMFTManager::GetDescriptionName() const
 {
   nsCString failureReason;
   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