Index: media/base/video_frame.h |
diff --git a/media/base/video_frame.h b/media/base/video_frame.h |
index 0ffd0585cdb20d434760d8e6d654f753b1c4e9db..e25cf180095a15b5dcaede3a98efe693c8c0bfef 100644 |
--- a/media/base/video_frame.h |
+++ b/media/base/video_frame.h |
@@ -137,6 +137,7 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { |
uint8* data, |
size_t data_size, |
base::SharedMemoryHandle handle, |
+ size_t data_offset, |
base::TimeDelta timestamp, |
const base::Closure& no_longer_needed_cb); |
@@ -298,6 +299,9 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { |
// Returns the shared-memory handle, if present |
base::SharedMemoryHandle shared_memory_handle() const; |
+ // Return the offset with the shared-memory handle. |
+ size_t shared_memory_offset() const; |
+ |
#if defined(OS_POSIX) |
// Returns backing dmabuf file descriptor for given |plane|, if present. |
int dmabuf_fd(size_t plane) const; |
@@ -389,6 +393,9 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { |
// Shared memory handle, if this frame was allocated from shared memory. |
base::SharedMemoryHandle shared_memory_handle_; |
+ // Offset in shared memory buffer. |
+ size_t shared_memory_offset_; |
+ |
#if defined(OS_POSIX) |
// Dmabufs for each plane, if this frame is wrapping memory |
// acquired via dmabuf. |