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
Родитель 1c07029298
Коммит 533d0807f0
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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() {