ports/www/chromium/files/patch-ui_gfx_native__pixmap__handle.cc
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
911 B
C++

--- ui/gfx/native_pixmap_handle.cc.orig 2019-03-11 22:01:19 UTC
+++ ui/gfx/native_pixmap_handle.cc
@@ -4,14 +4,14 @@
#include "ui/gfx/native_pixmap_handle.h"
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
#include <drm_fourcc.h>
#include "base/posix/eintr_wrapper.h"
#endif
namespace gfx {
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
static_assert(NativePixmapPlane::kNoModifier == DRM_FORMAT_MOD_INVALID,
"gfx::NativePixmapPlane::kNoModifier should be an alias for"
"DRM_FORMAT_MOD_INVALID");
@@ -36,7 +36,7 @@ NativePixmapHandle::NativePixmapHandle(const NativePix
NativePixmapHandle::~NativePixmapHandle() {}
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
NativePixmapHandle CloneHandleForIPC(const NativePixmapHandle& handle) {
NativePixmapHandle clone;
std::vector<base::ScopedFD> scoped_fds;