Index: content/renderer/media/rtc_video_decoder.h |
diff --git a/content/renderer/media/rtc_video_decoder.h b/content/renderer/media/rtc_video_decoder.h |
index c1a8b88ea05a6a30c6a3d2d90c7cef49eaccb128..0c8e45beda3a8f53a83a05d759bdfa40f6faadcb 100644 |
--- a/content/renderer/media/rtc_video_decoder.h |
+++ b/content/renderer/media/rtc_video_decoder.h |
@@ -91,11 +91,15 @@ |
struct BufferData { |
BufferData(int32 bitstream_buffer_id, |
uint32_t timestamp, |
+ int width, |
+ int height, |
size_t size); |
BufferData(); |
~BufferData(); |
int32 bitstream_buffer_id; |
uint32_t timestamp; // in 90KHz |
+ uint32_t width; |
+ uint32_t height; |
size_t size; // buffer size |
}; |
@@ -134,7 +138,10 @@ |
scoped_refptr<media::VideoFrame> CreateVideoFrame( |
const media::Picture& picture, |
const media::PictureBuffer& pb, |
- uint32_t timestamp); |
+ uint32_t timestamp, |
+ uint32_t width, |
+ uint32_t height, |
+ size_t size); |
// Resets VDA. |
void ResetInternal(); |
@@ -169,7 +176,11 @@ |
// Stores the buffer metadata to |input_buffer_data_|. |
void RecordBufferData(const BufferData& buffer_data); |
// Gets the buffer metadata from |input_buffer_data_|. |
- void GetBufferData(int32 bitstream_buffer_id, uint32_t* timestamp); |
+ void GetBufferData(int32 bitstream_buffer_id, |
+ uint32_t* timestamp, |
+ uint32_t* width, |
+ uint32_t* height, |
+ size_t* size); |
// Records the result of InitDecode to UMA and returns |status|. |
int32_t RecordInitDecodeUMA(int32_t status); |