File chromium-vaapi.patch of Package nodejs-electron
Index: electron-16.0.6/chrome/browser/about_flags.cc
===================================================================
--- electron-16.0.6.orig/chrome/browser/about_flags.cc 2022-01-10 16:06:46.589275127 +0100
+++ electron-16.0.6/chrome/browser/about_flags.cc 2022-01-13 16:03:32.565689855 +0100
@@ -3817,12 +3817,12 @@ const FeatureEntry kFeatureEntries[] = {
flag_descriptions::kWebXrForceRuntimeDescription, kOsDesktop,
MULTI_VALUE_TYPE(kWebXrForceRuntimeChoices)},
#endif // ENABLE_VR
-#if BUILDFLAG(IS_CHROMEOS_ASH)
+#if BUILDFLAG(IS_CHROMEOS_ASH) || (defined(OS_LINUX) && !defined(OS_ANDROID))
{"disable-accelerated-mjpeg-decode",
flag_descriptions::kAcceleratedMjpegDecodeName,
- flag_descriptions::kAcceleratedMjpegDecodeDescription, kOsCrOS,
+ flag_descriptions::kAcceleratedMjpegDecodeDescription, kOsCrOS | kOsLinux,
SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedMjpegDecode)},
-#endif // BUILDFLAG(IS_CHROMEOS_ASH)
+#endif // BUILDFLAG(IS_CHROMEOS_ASH) || (defined(OS_LINUX) && !defined(OS_ANDROID))
{"system-keyboard-lock", flag_descriptions::kSystemKeyboardLockName,
flag_descriptions::kSystemKeyboardLockDescription, kOsDesktop,
FEATURE_VALUE_TYPE(features::kSystemKeyboardLock)},
Index: electron-16.0.6/chrome/browser/flag_descriptions.cc
===================================================================
--- electron-16.0.6.orig/chrome/browser/flag_descriptions.cc 2022-01-10 16:06:47.041278140 +0100
+++ electron-16.0.6/chrome/browser/flag_descriptions.cc 2022-01-13 16:03:32.569689877 +0100
@@ -4002,12 +4002,24 @@ const char kAccountManagementFlowsV2Desc
"Settings. "
"See go/betterAM";
+#endif
+
+// Chrome OS and Linux --------------------------------------------------------
+
+#if BUILDFLAG(IS_CHROMEOS_ASH) || (defined(OS_LINUX) && !defined(OS_ANDROID))
+
const char kAcceleratedMjpegDecodeName[] =
"Hardware-accelerated mjpeg decode for captured frame";
const char kAcceleratedMjpegDecodeDescription[] =
"Enable hardware-accelerated mjpeg decode for captured frame where "
"available.";
+#endif
+
+// Chrome OS ------------------------------------------------------------------
+
+#if BUILDFLAG(IS_CHROMEOS_ASH)
+
const char kAllowDisableMouseAccelerationName[] =
"Allow disabling mouse acceleration";
const char kAllowDisableMouseAccelerationDescription[] =
Index: electron-16.0.6/chrome/browser/flag_descriptions.h
===================================================================
--- electron-16.0.6.orig/chrome/browser/flag_descriptions.h 2022-01-10 16:06:47.041278140 +0100
+++ electron-16.0.6/chrome/browser/flag_descriptions.h 2022-01-13 16:03:32.573689898 +0100
@@ -2295,9 +2295,21 @@ extern const char kUseAngleGL[];
extern const char kAccountManagementFlowsV2Name[];
extern const char kAccountManagementFlowsV2Description[];
+#endif
+
+// Chrome OS and Linux --------------------------------------------------------
+
+#if BUILDFLAG(IS_CHROMEOS_ASH) || (defined(OS_LINUX) && !defined(OS_ANDROID))
+
extern const char kAcceleratedMjpegDecodeName[];
extern const char kAcceleratedMjpegDecodeDescription[];
+#endif
+
+#if BUILDFLAG(IS_CHROMEOS_ASH)
+
+// Chrome OS ------------------------------------------------------------------
+
extern const char kAllowDisableMouseAccelerationName[];
extern const char kAllowDisableMouseAccelerationDescription[];