summaryrefslogtreecommitdiff
path: root/www/chromium-uc/patches/patch-media_base_video_frame_h
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium-uc/patches/patch-media_base_video_frame_h')
-rw-r--r--www/chromium-uc/patches/patch-media_base_video_frame_h50
1 files changed, 0 insertions, 50 deletions
diff --git a/www/chromium-uc/patches/patch-media_base_video_frame_h b/www/chromium-uc/patches/patch-media_base_video_frame_h
deleted file mode 100644
index 0eb0921..0000000
--- a/www/chromium-uc/patches/patch-media_base_video_frame_h
+++ /dev/null
@@ -1,50 +0,0 @@
1$OpenBSD: patch-media_base_video_frame_h,v 1.40 2021/11/16 11:28:47 robert Exp $
2
3Index: media/base/video_frame.h
4--- media/base/video_frame.h.orig
5+++ media/base/video_frame.h
6@@ -39,7 +39,7 @@
7 #include "base/mac/scoped_cftyperef.h"
8 #endif // defined(OS_MAC)
9
10-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
11+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
12 #include "base/files/scoped_file.h"
13 #endif // defined(OS_LINUX) || defined(OS_CHROMEOS)
14
15@@ -81,7 +81,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte
16 STORAGE_UNOWNED_MEMORY = 2, // External, non owned data pointers.
17 STORAGE_OWNED_MEMORY = 3, // VideoFrame has allocated its own data buffer.
18 STORAGE_SHMEM = 4, // Backed by unsafe (writable) shared memory.
19-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
20+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
21 // TODO(mcasas): Consider turning this type into STORAGE_NATIVE
22 // based on the idea of using this same enum value for both DMA
23 // buffers on Linux and CVPixelBuffers on Mac (which currently use
24@@ -275,7 +275,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte
25 ReleaseMailboxAndGpuMemoryBufferCB mailbox_holder_and_gmb_release_cb,
26 base::TimeDelta timestamp);
27
28-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
29+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
30 // Wraps provided dmabufs
31 // (https://www.kernel.org/doc/html/latest/driver-api/dma-buf.html) with a
32 // VideoFrame. The frame will take ownership of |dmabuf_fds|, and will
33@@ -534,7 +534,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte
34 // mailbox, the caller must wait for the included sync point.
35 const gpu::MailboxHolder& mailbox_holder(size_t texture_index) const;
36
37-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
38+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
39 // Returns a vector containing the backing DmaBufs for this frame. The number
40 // of returned DmaBufs will be equal or less than the number of planes of
41 // the frame. If there are less, this means that the last FD contains the
42@@ -741,7 +741,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCounte
43 // GPU memory buffer, if this frame is STORAGE_GPU_MEMORY_BUFFER.
44 std::unique_ptr<gfx::GpuMemoryBuffer> gpu_memory_buffer_;
45
46-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
47+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
48 class DmabufHolder;
49
50 // Dmabufs for the frame, used when storage is STORAGE_DMABUFS. Size is either