diff options
Diffstat (limited to 'chromium/media/base/video_frame.h')
-rw-r--r-- | chromium/media/base/video_frame.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chromium/media/base/video_frame.h b/chromium/media/base/video_frame.h index 271fcdf19fd..51515be694a 100644 --- a/chromium/media/base/video_frame.h +++ b/chromium/media/base/video_frame.h @@ -14,8 +14,8 @@ #include <vector> #include "base/callback.h" +#include "base/check_op.h" #include "base/hash/md5.h" -#include "base/logging.h" #include "base/macros.h" #include "base/memory/aligned_memory.h" #include "base/memory/ref_counted.h" @@ -535,8 +535,16 @@ class MEDIA_EXPORT VideoFrame : public base::RefCountedThreadSafe<VideoFrame> { // // TODO(miu): Move some of the "extra" members of VideoFrame (below) into // here as a later clean-up step. + // + // TODO(https://crbug.com/1096727): change the return type to const&. const VideoFrameMetadata* metadata() const { return &metadata_; } VideoFrameMetadata* metadata() { return &metadata_; } + void set_metadata(const VideoFrameMetadata& metadata) { + metadata_ = metadata; + } + + // Resets |metadata_|. + void clear_metadata() { set_metadata(VideoFrameMetadata()); } // The time span between the current frame and the first frame of the stream. // This is the media timestamp, and not the reference time. |