Index: media/filters/fake_video_decoder.h |
diff --git a/media/filters/fake_video_decoder.h b/media/filters/fake_video_decoder.h |
index bd0b28450a917ddd6a47b285a058fce364f41616..7afa7240f95a9ea430c0c2174c67266a5c8ece4d 100644 |
--- a/media/filters/fake_video_decoder.h |
+++ b/media/filters/fake_video_decoder.h |
@@ -40,6 +40,10 @@ class FakeVideoDecoder : public VideoDecoder { |
const DecodeCB& decode_cb) OVERRIDE; |
virtual void Reset(const base::Closure& closure) OVERRIDE; |
virtual void Stop(const base::Closure& closure) OVERRIDE; |
+ virtual scoped_refptr<VideoFrame> GetDecodeOutput() OVERRIDE; |
+ |
+ // Queue up a VideoFrame to be returned by GetDecodeOutput(). |
+ void QueueRead(); |
xhwang
2014/03/06 23:32:40
You probably also need to update fake_video_decode
|
// Holds the next init/read/reset/stop callback from firing. |
void HoldNextInit(); |
@@ -55,6 +59,7 @@ class FakeVideoDecoder : public VideoDecoder { |
void SatisfyStop(); |
int total_bytes_decoded() const { return total_bytes_decoded_; } |
+ int reads_queued() const { return reads_queued_; } |
private: |
enum State { |
@@ -90,6 +95,8 @@ class FakeVideoDecoder : public VideoDecoder { |
int total_bytes_decoded_; |
+ int reads_queued_; |
+ |
DISALLOW_COPY_AND_ASSIGN(FakeVideoDecoder); |
}; |