summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-components_viz_common_features.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-components_viz_common_features.cc')
-rw-r--r--www/chromium/files/patch-components_viz_common_features.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/chromium/files/patch-components_viz_common_features.cc b/www/chromium/files/patch-components_viz_common_features.cc
new file mode 100644
index 000000000000..abcd386b161a
--- /dev/null
+++ b/www/chromium/files/patch-components_viz_common_features.cc
@@ -0,0 +1,20 @@
+--- components/viz/common/features.cc.orig 2024-06-17 12:56:06 UTC
++++ components/viz/common/features.cc
+@@ -251,7 +251,7 @@ BASE_FEATURE(kBufferQueueImageSetPurgeable,
+ "BufferQueueImageSetPurgeable",
+ 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
+@@ -535,7 +535,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);
+ }