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

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: Rebase! 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
« no previous file with comments | « media/filters/decrypting_audio_decoder_unittest.cc ('k') | media/filters/fake_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..417c83e783d84efb41475c2a162d36f9f8e0e252 100644
--- a/media/filters/fake_video_decoder.h
+++ b/media/filters/fake_video_decoder.h
@@ -30,7 +30,8 @@ namespace media {
class FakeVideoDecoder : public VideoDecoder {
public:
// Constructs an object with a decoding delay of |decoding_delay| frames.
- explicit FakeVideoDecoder(int decoding_delay);
+ explicit FakeVideoDecoder(int decoding_delay,
+ bool supports_get_decode_output);
virtual ~FakeVideoDecoder();
// VideoDecoder implementation.
@@ -40,6 +41,7 @@ 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;
// Holds the next init/read/reset/stop callback from firing.
void HoldNextInit();
@@ -77,6 +79,8 @@ class FakeVideoDecoder : public VideoDecoder {
const int decoding_delay_;
+ bool supports_get_decode_output_;
+
State state_;
CallbackHolder<PipelineStatusCB> init_cb_;
« no previous file with comments | « media/filters/decrypting_audio_decoder_unittest.cc ('k') | media/filters/fake_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698