$NetBSD: patch-src_3rdparty_chromium_gpu_ipc_common_gpu__memory__buffer__support.h,v 1.2 2022/04/18 11:18:19 adam Exp $ --- src/3rdparty/chromium/gpu/ipc/common/gpu_memory_buffer_support.h.orig 2021-02-19 16:41:59.000000000 +0000 +++ src/3rdparty/chromium/gpu/ipc/common/gpu_memory_buffer_support.h @@ -16,7 +16,7 @@ #include "ui/gfx/geometry/size.h" #include "ui/gfx/gpu_memory_buffer.h" -#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(USE_OZONE) +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(USE_OZONE) || defined(OS_BSD) namespace gfx { class ClientNativePixmapFactory; } @@ -38,7 +38,7 @@ class GPU_EXPORT GpuMemoryBufferSupport bool IsNativeGpuMemoryBufferConfigurationSupported(gfx::BufferFormat format, gfx::BufferUsage usage); -#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(USE_OZONE) +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(USE_OZONE) || defined(OS_BSD) gfx::ClientNativePixmapFactory* client_native_pixmap_factory() { return client_native_pixmap_factory_.get(); } @@ -62,7 +62,7 @@ class GPU_EXPORT GpuMemoryBufferSupport GpuMemoryBufferImpl::DestructionCallback callback); private: -#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(USE_OZONE) +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(USE_OZONE) || defined(OS_BSD) std::unique_ptr client_native_pixmap_factory_; #endif