| Index: media/mojo/common/mojo_shared_buffer_video_frame.h
|
| diff --git a/media/mojo/common/mojo_shared_buffer_video_frame.h b/media/mojo/common/mojo_shared_buffer_video_frame.h
|
| index 945f43e51f38ec57e6279a8e8e9538d6e7772fd7..d72153201a972eba73d4568b2b91d9c44925d5bb 100644
|
| --- a/media/mojo/common/mojo_shared_buffer_video_frame.h
|
| +++ b/media/mojo/common/mojo_shared_buffer_video_frame.h
|
| @@ -72,6 +72,13 @@ class MojoSharedBufferVideoFrame : public VideoFrame {
|
| // |plane| specified.
|
| size_t PlaneOffset(size_t plane) const;
|
|
|
| + // Returns a reference to the mojo shared memory handle. Caller should
|
| + // duplicate the handle if they want to extend the lifetime of the buffer.
|
| + const mojo::SharedBufferHandle& Handle() const;
|
| +
|
| + // Returns the size of the shared memory.
|
| + size_t MappedSize() const;
|
| +
|
| // Sets the callback to be called to free the shared buffer. If not null,
|
| // it is called on destruction, and is passed ownership of |handle|.
|
| void SetMojoSharedBufferDoneCB(
|
| @@ -102,14 +109,6 @@ class MojoSharedBufferVideoFrame : public VideoFrame {
|
| size_t u_offset,
|
| size_t v_offset);
|
|
|
| - // Returns the mojo shared memory handle. This object continues to own the
|
| - // handle. Caller should call duplicate the handle if they want to keep a
|
| - // copy of the shared memory.
|
| - const mojo::SharedBufferHandle& Handle() const;
|
| -
|
| - // Returns the size of the shared memory.
|
| - size_t MappedSize() const;
|
| -
|
| uint8_t* shared_buffer_data() {
|
| return reinterpret_cast<uint8_t*>(shared_buffer_mapping_.get());
|
| };
|
|
|