mirror of
https://abf.rosa.ru/djam/chromium-browser-stable-test.git
synced 2025-02-24 18:12:47 +00:00
46 lines
1.9 KiB
Diff
46 lines
1.9 KiB
Diff
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
|
Subject: Enable VA-API on desktop Linux by default
|
|
|
|
* enable VaapiVideoDecoderLinuxGL (equivalent of --enable-features=VaapiVideoDecoderLinuxGL)
|
|
which is needed to make VA-API work on desktop Linux
|
|
* track that VaapiVideoDecoder does not get disabled on updates
|
|
* enable HW decoding in WebRTC where possible
|
|
|
|
TODO: maybe enable VA-API encoding later.
|
|
If enabling, see code after "#if defined(ARCH_CPU_X86_FAMILY) && BUILDFLAG(IS_CHROMEOS)",
|
|
maybe remove IS_CHROMEOS there.
|
|
|
|
Nostromo video conferencing (moconf.ru) allows to choose a WebRTC codec when creating a room.
|
|
|
|
--- chromium-114.0.5735.198.orig/media/base/media_switches.cc 2023-07-06 13:31:24.435089557 +0300
|
|
+++ chromium-114.0.5735.198/media/base/media_switches.cc 2023-07-06 13:53:23.922855598 +0300
|
|
@@ -717,14 +717,15 @@
|
|
// chromeos, but needs an experiment on linux.
|
|
BASE_FEATURE(kVaapiVideoDecodeLinux,
|
|
"VaapiVideoDecoder",
|
|
- base::FEATURE_ENABLED_BY_DEFAULT);
|
|
+ base::FEATURE_ENABLED_BY_DEFAULT); // keep enabled
|
|
|
|
BASE_FEATURE(kVaapiVideoDecodeLinuxGL,
|
|
"VaapiVideoDecodeLinuxGL",
|
|
- base::FEATURE_DISABLED_BY_DEFAULT);
|
|
+ base::FEATURE_ENABLED_BY_DEFAULT);
|
|
|
|
BASE_FEATURE(kVaapiVideoEncodeLinux,
|
|
"VaapiVideoEncoder",
|
|
+ // TODO: test and enable later? See also IS_CHROMEOS bellow.
|
|
base::FEATURE_DISABLED_BY_DEFAULT);
|
|
|
|
// Ignore the non-intel driver blacklist for VaapiVideoDecoder implementations.
|
|
@@ -801,11 +802,7 @@
|
|
// Enable VP9 k-SVC decoding with HW decoder for webrtc use case.
|
|
BASE_FEATURE(kVp9kSVCHWDecoding,
|
|
"Vp9kSVCHWDecoding",
|
|
-#if BUILDFLAG(IS_CHROMEOS)
|
|
base::FEATURE_ENABLED_BY_DEFAULT
|
|
-#else
|
|
- base::FEATURE_DISABLED_BY_DEFAULT
|
|
-#endif
|
|
);
|
|
|
|
// Takes a reference on a video frame, keeping it alive during the duration of a
|