Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: media/filters/fake_video_decoder.h

Issue 141243003: Add AudioBufferStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decoderstream_rebased
Patch Set: Add unit test Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698