$NetBSD: patch-src_3rdparty_chromium_media_video_video__encode__accelerator__adapter.cc,v 1.1 2025/12/21 09:38:33 markd Exp $

* Part of patchset to build chromium on NetBSD
* Based on OpenBSD's chromium patches, and
  pkgsrc's qt5-qtwebengine patches

--- src/3rdparty/chromium/media/video/video_encode_accelerator_adapter.cc.orig	2025-10-02 00:36:39.000000000 +0000
+++ src/3rdparty/chromium/media/video/video_encode_accelerator_adapter.cc
@@ -463,7 +463,7 @@ void VideoEncodeAcceleratorAdapter::Init
 
   auto format = PIXEL_FORMAT_I420;
   auto storage_type = VideoEncodeAccelerator::Config::StorageType::kShmem;
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
   // Linux/ChromeOS require a special configuration to use dmabuf storage.
   // We need to keep sending frames with the same storage type.
   // Other platforms will happily mix GpuMemoryBuffer storage with shared-mem
