From a86b5ee086e281f34ab90498aedde523c47f9df0 Mon Sep 17 00:00:00 2001 From: Hou Qi Date: Wed, 17 Aug 2022 16:57:11 +0800 Subject: [PATCH 01/17] V4L2VDA: Switch to use VDA instead of direct VideoDecoder commit b7f3a9e8058f593d7d88b6b6cafa71957aa3f1a1 aims to default enable "direct VideoDecoder" support on Linux. So need to switch to use VDA path iff: 1. kVaapiVideoDecodeLinux is enabled (disabled by default); 2. kUseChromeOSDirectVideoDecoder is disabled (enabled by default); 3. GL is used; Upstream-Status: Inappropriate [NXP specific] --- media/base/media_switches.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc index 36d638adb816e..938bcede9c878 100644 --- a/media/base/media_switches.cc +++ b/media/base/media_switches.cc @@ -487,7 +487,7 @@ const base::Feature kUnifiedAutoplay{"UnifiedAutoplay", // Enable vaapi video decoding on linux. This is already enabled by default on // chromeos, but needs an experiment on linux. const base::Feature kVaapiVideoDecodeLinux{"VaapiVideoDecoder", - base::FEATURE_DISABLED_BY_DEFAULT}; + base::FEATURE_ENABLED_BY_DEFAULT}; const base::Feature kVaapiVideoEncodeLinux{"VaapiVideoEncoder", base::FEATURE_DISABLED_BY_DEFAULT}; @@ -735,7 +735,7 @@ const base::Feature kUseRealColorSpaceForAndroidVideo{ // experiment with direct VideoDecoder path on Linux Desktop. // TODO(b/159825227): remove when the direct video decoder is fully launched. const base::Feature kUseChromeOSDirectVideoDecoder{ - "UseChromeOSDirectVideoDecoder", base::FEATURE_ENABLED_BY_DEFAULT}; + "UseChromeOSDirectVideoDecoder", base::FEATURE_DISABLED_BY_DEFAULT}; #if BUILDFLAG(IS_CHROMEOS) // ChromeOS has one of two VideoDecoder implementations active based on -- 2.17.1