Files
ports/devel/electron42/files/patch-gpu_config_gpu__finch__features.cc
2026-10-04 04:07:15 +00:00

40 lines
1.9 KiB
C++

--- gpu/config/gpu_finch_features.cc.orig 2026-04-28 21:06:17 UTC
+++ gpu/config/gpu_finch_features.cc
@@ -110,7 +110,7 @@ BASE_FEATURE(kRemoveGPULegacyIPC, base::FEATURE_DISABL
// of associating with an unused IPC::Channel.
BASE_FEATURE(kRemoveGPULegacyIPC, base::FEATURE_DISABLED_BY_DEFAULT);
-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// Feature flag to control whether SharedImageStub sequence uses high priority
// on ChromeOS and Linux. Enabled by default.
BASE_FEATURE(kSharedImageStubHighPriority, base::FEATURE_DISABLED_BY_DEFAULT);
@@ -119,7 +119,7 @@ BASE_FEATURE(kNvidiaWaylandYuvHardwareConversionWorkar
// Disables hardware YUV conversion on NVIDIA + Wayland to workaround a driver
// bug.
BASE_FEATURE(kNvidiaWaylandYuvHardwareConversionWorkaround,
-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
@@ -132,7 +132,8 @@ BASE_FEATURE(kDefaultEnableGpuRasterization,
// Android and Linux.
BASE_FEATURE(kDefaultEnableGpuRasterization,
#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || \
- BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX)
+ BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || \
+ BUILDFLAG(IS_BSD)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
@@ -468,7 +469,7 @@ const base::FeatureParam<int> kGPUDriverBugListTestGro
const base::FeatureParam<int> kGPUDriverBugListTestGroupId{
&kGPUDriverBugListTestGroup, "test_group", 0};
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
bool IsForceEnableWebGpuInterop() {
return base::FeatureList::IsEnabled(kForceEnableWebGpuInterop);
}