Chromium Code Reviews| Index: media/filters/gpu_video_decoder.h |
| diff --git a/media/filters/gpu_video_decoder.h b/media/filters/gpu_video_decoder.h |
| index af6dcf8d6738f5e55f7fffb3170f276306b0a858..e284a5aff653b4b875eec59b72547c8fa40d75d6 100644 |
| --- a/media/filters/gpu_video_decoder.h |
| +++ b/media/filters/gpu_video_decoder.h |
| @@ -67,7 +67,6 @@ class MEDIA_EXPORT GpuVideoDecoder |
| virtual void Read(const ReadCB& read_cb) OVERRIDE; |
| virtual void Reset(const base::Closure& closure) OVERRIDE; |
| virtual void Stop(const base::Closure& closure) OVERRIDE; |
| - virtual const gfx::Size& natural_size() OVERRIDE; |
| virtual bool HasAlpha() const OVERRIDE; |
| virtual void PrepareForShutdownHack() OVERRIDE; |
| @@ -117,9 +116,10 @@ class MEDIA_EXPORT GpuVideoDecoder |
| // Indicate the picturebuffer can be reused by the decoder. |
| void ReusePictureBuffer(int64 picture_buffer_id); |
| - void RecordBufferTimeData( |
| + void RecordBufferData( |
| const BitstreamBuffer& bitstream_buffer, const Buffer& buffer); |
| - base::TimeDelta GetBufferTimestamp(int32 id); |
| + void GetBufferData(int32 id, base::TimeDelta* timetamp, |
| + gfx::Size* natural_size); |
| // Set |vda_| and |weak_vda_| on the VDA thread (in practice the render |
| // thread). |
| @@ -142,8 +142,7 @@ class MEDIA_EXPORT GpuVideoDecoder |
| StatisticsCB statistics_cb_; |
| - // TODO(scherkus): I think this should be calculated by VideoRenderers based |
| - // on information provided by VideoDecoders (i.e., aspect ratio). |
| + // Natural size from the last VideoDecoderConfig received. |
|
Ami GONE FROM CHROMIUM
2012/08/02 00:16:14
Ditto
acolwell GONE FROM CHROMIUM
2012/08/02 02:16:30
Gone.
|
| gfx::Size natural_size_; |
| // Pointer to the demuxer stream that will feed us compressed buffers. |
| @@ -194,9 +193,15 @@ class MEDIA_EXPORT GpuVideoDecoder |
| // The texture target used for decoded pictures. |
| uint32 decoder_texture_target_; |
| - // Maintains bitstream buffer ID to timestamp mappings. |
| - typedef std::pair<int32, base::TimeDelta> BufferTimeData; |
| - std::list<BufferTimeData> input_buffer_time_data_; |
| + struct BufferData { |
| + BufferData(int32 bbid, base::TimeDelta ts, |
| + const gfx::Size& natural_size); |
|
Ami GONE FROM CHROMIUM
2012/08/02 00:16:14
indent is off
acolwell GONE FROM CHROMIUM
2012/08/02 02:16:30
Done.
|
| + ~BufferData(); |
| + int32 bitstream_buffer_id; |
| + base::TimeDelta timestamp; |
| + gfx::Size natural_size; |
| + }; |
| + std::list<BufferData> input_buffer_time_data_; |
|
Ami GONE FROM CHROMIUM
2012/08/02 00:16:14
s/_time//
acolwell GONE FROM CHROMIUM
2012/08/02 02:16:30
Done.
|
| // picture_buffer_id and the frame wrapping the corresponding Picture, for |
| // frames that have been decoded but haven't been requested by a Read() yet. |