opnsense-ports/devel/electron32/files/patch-components_viz_common_features.cc
Franco Fichtner fd3bf1794a */*: sync with upstream
Taken from: FreeBSD
2024-09-23 09:02:17 +02:00

20 lines
1,015 B
C++

--- components/viz/common/features.cc.orig 2024-08-14 20:54:58 UTC
+++ components/viz/common/features.cc
@@ -234,7 +234,7 @@ BASE_FEATURE(kAllowForceMergeRenderPassWithRequireOver
"AllowForceMergeRenderPassWithRequireOverlayQuads",
base::FEATURE_ENABLED_BY_DEFAULT);
-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// On platforms using SkiaOutputDeviceBufferQueue and not yet universally using
// SkiaRenderer-allocated images, when this is true SkiaRenderer will allocate
// and maintain a buffer queue of images for the root render pass, instead of
@@ -500,7 +500,7 @@ bool ShouldOnBeginFrameThrottleVideo() {
return base::FeatureList::IsEnabled(features::kOnBeginFrameThrottleVideo);
}
-#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
bool ShouldRendererAllocateImages() {
return base::FeatureList::IsEnabled(kRendererAllocatesImages);
}