Add chromiumos switches

This commit is contained in:
Alexander David Frick 2022-04-07 10:25:09 -05:00 committed by GitHub
parent 49581aae12
commit 220370d8bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -740,6 +740,15 @@ const base::Feature kUseRealColorSpaceForAndroidVideo{
const base::Feature kUseChromeOSDirectVideoDecoder{
"UseChromeOSDirectVideoDecoder", base::FEATURE_DISABLED_BY_DEFAULT};
#if defined(ARCH_CPU_ARM_FAMILY)
// Some architectures have separate image processor hardware that
// can be used by Chromium's ImageProcessor to color convert/crop/etc.
// video buffers. Sometimes it is more efficient/performant/correct
// to use libYUV instead of the hardware to do this processing.
const base::Feature kPreferLibYuvImageProcessor{
"prefer-libyuv-image-processor", base::FEATURE_DISABLED_BY_DEFAULT};
#endif // defined(ARCH_CPU_ARM_FAMILY)
#if BUILDFLAG(IS_CHROMEOS)
// ChromeOS has one of two VideoDecoder implementations active based on
// SoC/board specific configurations that are sent via command line flags. This