aboutsummaryrefslogtreecommitdiff
path: root/devel/electron29/files/patch-content_browser_gpu_gpu__memory__buffer__manager__singleton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron29/files/patch-content_browser_gpu_gpu__memory__buffer__manager__singleton.cc')
-rw-r--r--devel/electron29/files/patch-content_browser_gpu_gpu__memory__buffer__manager__singleton.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron29/files/patch-content_browser_gpu_gpu__memory__buffer__manager__singleton.cc b/devel/electron29/files/patch-content_browser_gpu_gpu__memory__buffer__manager__singleton.cc
new file mode 100644
index 000000000000..e07837f0b0e9
--- /dev/null
+++ b/devel/electron29/files/patch-content_browser_gpu_gpu__memory__buffer__manager__singleton.cc
@@ -0,0 +1,20 @@
+--- content/browser/gpu/gpu_memory_buffer_manager_singleton.cc.orig 2024-02-21 00:20:44 UTC
++++ content/browser/gpu/gpu_memory_buffer_manager_singleton.cc
+@@ -54,7 +54,7 @@ scoped_refptr<base::SingleThreadTaskRunner> GetTaskRun
+ #endif
+ }
+
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ bool IsGpuMemoryBufferNV12Supported() {
+ static bool is_computed = false;
+ static bool supported = false;
+@@ -117,7 +117,7 @@ void GpuMemoryBufferManagerSingleton::OnGpuExtraInfoUp
+ SetNativeConfigurations(std::move(configs));
+ }
+ #endif // BUILDFLAG(IS_OZONE_X11)
+-#if BUILDFLAG(IS_LINUX)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
+ // Dynamic check whether the NV12 format is supported as it may be
+ // inconsistent between the system GBM (Generic Buffer Management) and
+ // chromium miniGBM.