23 lines
830 B
C
23 lines
830 B
C
$NetBSD$
|
|
|
|
--- ui/gfx/gpu_memory_buffer.h.orig 2020-07-15 18:56:34.000000000 +0000
|
|
+++ ui/gfx/gpu_memory_buffer.h
|
|
@@ -15,7 +15,7 @@
|
|
#include "ui/gfx/geometry/rect.h"
|
|
#include "ui/gfx/gfx_export.h"
|
|
|
|
-#if defined(USE_OZONE) || defined(OS_LINUX)
|
|
+#if defined(USE_OZONE) || defined(OS_LINUX) || defined(OS_BSD)
|
|
#include "ui/gfx/native_pixmap_handle.h"
|
|
#elif defined(OS_MACOSX) && !defined(OS_IOS)
|
|
#include "ui/gfx/mac/io_surface.h"
|
|
@@ -69,7 +69,7 @@ struct GFX_EXPORT GpuMemoryBufferHandle
|
|
base::UnsafeSharedMemoryRegion region;
|
|
uint32_t offset = 0;
|
|
int32_t stride = 0;
|
|
-#if defined(OS_LINUX) || defined(OS_FUCHSIA)
|
|
+#if defined(OS_LINUX) || defined(OS_FUCHSIA) || defined(OS_BSD)
|
|
NativePixmapHandle native_pixmap_handle;
|
|
#elif defined(OS_MACOSX) && !defined(OS_IOS)
|
|
ScopedRefCountedIOSurfaceMachPort mach_port;
|