hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 4c131aa56b03f76014d3834db7a03f6b5d0601b4 Mon Sep 17 00:00:00 2001
From: Jeffy Chen <jeffy.chen@rock-chips.com>
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 <jeffy.chen@rock-chips.com>
---
 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