1 --- ui/gfx/native_pixmap_handle.h.orig	2022-02-28 16:54:41 UTC
2 +++ ui/gfx/native_pixmap_handle.h
3 @@ -15,7 +15,7 @@
4  #include "third_party/abseil-cpp/absl/types/optional.h"
5  #include "ui/gfx/gfx_export.h"
6 
7 -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
8 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
9  #include "base/files/scoped_file.h"
10  #endif
11 
12 @@ -32,7 +32,7 @@ struct GFX_EXPORT NativePixmapPlane {
13    NativePixmapPlane(int stride,
14                      int offset,
15                      uint64_t size
16 -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
17 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
18                      ,
19                      base::ScopedFD fd
20  #elif BUILDFLAG(IS_FUCHSIA)
21 @@ -53,7 +53,7 @@ struct GFX_EXPORT NativePixmapPlane {
22    // This is necessary to map the buffers.
23    uint64_t size;
24 
25 -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
26 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
27    // File descriptor for the underlying memory object (usually dmabuf).
28    base::ScopedFD fd;
29  #elif BUILDFLAG(IS_FUCHSIA)
30 @@ -82,7 +82,7 @@ struct GFX_EXPORT NativePixmapHandle {
31 
32    std::vector<NativePixmapPlane> planes;
33 
34 -#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
35 +#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
36    // The modifier is retrieved from GBM library and passed to EGL driver.
37    // Generally it's platform specific, and we don't need to modify it in
38    // Chromium code. Also one per plane per entry.
39