google-chrome: add libva support

Chrome cannot do hardware video acceleration without libva in its search
path. This just adds libva. Tested against a VP9 video looking at
chrome://media-internals and intel_gpu_top.
This commit is contained in:
Julien Langlois 2021-03-11 15:24:47 -05:00 committed by Michael Weiss
parent 3d92c78160
commit ed0d586941
No known key found for this signature in database
GPG Key ID: 5BE487C4D4771D83

View File

@ -39,6 +39,9 @@
, gsettings-desktop-schemas
, gnome3
# For video acceleration via VA-API (--enable-features=VaapiVideoDecoder)
, libvaSupport ? true, libva
}:
with lib;
@ -63,6 +66,7 @@ let
kerberos libdrm mesa coreutils
libxkbcommon wayland
] ++ optional pulseSupport libpulseaudio
++ optional libvaSupport libva
++ [ gtk3 ];
suffix = if channel != "stable" then "-" + channel else "";