Bug 1417442 - P4. Indicate surface type in decoder description. r=mattwoodrow
authorJean-Yves Avenard <jyavenard@mozilla.com>
Wed, 15 Nov 2017 23:33:37 +0100
changeset 392406 be47971d367a
parent 392405 eeb2f534cf10
child 392407 42ad440d0c5f
push id55561
push userjyavenard@mozilla.com
push dateFri, 17 Nov 2017 14:43:19 +0000
treeherderautoland@be47971d367a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1417442
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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