Bug 1417442 - P4. Indicate surface type in decoder description. r=mattwoodrow, a=sledru
authorJean-Yves Avenard <jyavenard@mozilla.com>
Wed, 15 Nov 2017 23:33:37 +0100
changeset 442423 e93cdfd48553
parent 442422 c645b0914f62
child 442424 b5b9ca5f99b9
push id8203
push userryanvm@gmail.com
push dateWed, 22 Nov 2017 21:05:02 +0000
treeherdermozilla-beta@d55f73f1c890 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow, sledru
bugs1417442
milestone58.0
Bug 1417442 - P4. Indicate surface type in decoder description. r=mattwoodrow, a=sledru 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