Bug 1619523 [Linux] Remove Wayland check at gfxPlatformGtk::UseDMABufVideoTextures(), make VA-API decoding possible on X11 r=jhorak
authorMartin Stransky <stransky@redhat.com>
Fri, 03 Jul 2020 12:23:43 +0000 (2020-07-03)
changeset 538720 3f4a0bc01840d70cf0241d410f135e80875b375a
parent 538719 4f044c37af6f57e15d364baf95c8a582c1d4b281
child 538721 c724516c73d2e34c1d48db77b8996196b2e8c4b4
push id37567
push userdluca@mozilla.com
push dateFri, 03 Jul 2020 21:50:22 +0000 (2020-07-03)
treeherdermozilla-central@efa2336315ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjhorak
bugs1619523
milestone80.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 1619523 [Linux] Remove Wayland check at gfxPlatformGtk::UseDMABufVideoTextures(), make VA-API decoding possible on X11 r=jhorak Differential Revision: https://phabricator.services.mozilla.com/D82183
gfx/thebes/gfxPlatformGtk.cpp
--- a/gfx/thebes/gfxPlatformGtk.cpp
+++ b/gfx/thebes/gfxPlatformGtk.cpp
@@ -722,18 +722,17 @@ already_AddRefed<gfx::VsyncSource> gfxPl
 
 #endif
 
 #ifdef MOZ_WAYLAND
 bool gfxPlatformGtk::UseDMABufTextures() {
   return IsWaylandDisplay() && GetDMABufDevice()->IsDMABufTexturesEnabled();
 }
 bool gfxPlatformGtk::UseDMABufVideoTextures() {
-  return IsWaylandDisplay() &&
-         (GetDMABufDevice()->IsDMABufVideoTexturesEnabled() ||
+  return (GetDMABufDevice()->IsDMABufVideoTexturesEnabled() ||
           StaticPrefs::media_ffmpeg_vaapi_enabled());
 }
 bool gfxPlatformGtk::UseHardwareVideoDecoding() {
   return gfxPlatform::CanUseHardwareVideoDecoding() &&
          StaticPrefs::media_ffmpeg_vaapi_enabled();
 }
 bool gfxPlatformGtk::UseDRMVAAPIDisplay() {
   return IsX11Display() || GetDMABufDevice()->IsDRMVAAPIDisplayEnabled();