ports/www/chromium/files/patch-ui_gfx_native__pixmap__handle.h
Carlos J. Puga Medina d90bf58cf8 www/chromium: Update to 73.0.3683.86
- Make existing patches apply cleanly

Changelog: https://chromium.googlesource.com/chromium/src/+log/72.0.3626.121..73.0.3683.86?pretty=fuller&n=10000

Submitted by:	Matthias Wolf
MFH:		2019Q2
2019-04-05 12:01:25 +00:00

28 lines
873 B
C++

--- ui/gfx/native_pixmap_handle.h.orig 2019-03-11 22:01:19 UTC
+++ ui/gfx/native_pixmap_handle.h
@@ -13,7 +13,7 @@
#include "build/build_config.h"
#include "ui/gfx/gfx_export.h"
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
#include "base/file_descriptor_posix.h"
#endif
@@ -54,14 +54,14 @@ struct GFX_EXPORT NativePixmapHandle {
~NativePixmapHandle();
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
// File descriptors for the underlying memory objects (usually dmabufs).
std::vector<base::FileDescriptor> fds;
#endif
std::vector<NativePixmapPlane> planes;
};
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
// Returns an instance of |handle| which can be sent over IPC. This duplicates
// the file-handles, so that the IPC code take ownership of them, without
// invalidating |handle|.