From 4c131aa56b03f76014d3834db7a03f6b5d0601b4 Mon Sep 17 00:00:00 2001 From: Jeffy Chen Date: Thu, 26 Mar 2020 16:52:16 +0800 Subject: [PATCH 07/12] Disable SkiaRenderer for V4L2VDA on Linux The SkiaRenderer cause lots of crashes when testing V4L2VDA. Signed-off-by: Jeffy Chen --- src/3rdparty/chromium/components/viz/common/features.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/3rdparty/chromium/components/viz/common/features.cc b/src/3rdparty/chromium/components/viz/common/features.cc index 86507b01e5..363e6d838a 100644 --- a/src/3rdparty/chromium/components/viz/common/features.cc +++ b/src/3rdparty/chromium/components/viz/common/features.cc @@ -9,6 +9,7 @@ #include "components/viz/common/switches.h" #include "components/viz/common/viz_utils.h" #include "gpu/config/gpu_finch_features.h" +#include "media/gpu/buildflags.h" #if defined(OS_ANDROID) #include "base/android/build_info.h" @@ -91,6 +92,11 @@ bool IsUsingSkiaRenderer() { return false; #endif +#if BUILDFLAG(USE_LINUX_V4L2) + // SkiaRenderer seems buggy for VDA rendering. + return false; +#endif + // Viz for webview requires SkiaRenderer. if (IsUsingVizForWebView()) return true; -- 2.20.1