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
This commit is contained in:
Martin Stransky 2020-07-03 12:23:43 +00:00
parent 1c07029298
commit 533d0807f0

View File

@ -727,8 +727,7 @@ 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() {