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

Unified Diff: media/filters/fake_video_decoder.h

Issue 331863004: Revert 276344 "Add callback in VideoDecoder and AudioDecoder to ..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2049/src/
Patch Set: Created 6 years, 6 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_video_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
===================================================================
--- media/filters/fake_video_decoder.h (revision 277175)
+++ media/filters/fake_video_decoder.h (working copy)
@@ -32,18 +32,19 @@
public:
// Constructs an object with a decoding delay of |decoding_delay| frames.
FakeVideoDecoder(int decoding_delay,
+ bool supports_get_decode_output,
int max_parallel_decoding_requests);
virtual ~FakeVideoDecoder();
// VideoDecoder implementation.
virtual void Initialize(const VideoDecoderConfig& config,
bool low_delay,
- const PipelineStatusCB& status_cb,
- const OutputCB& output_cb) OVERRIDE;
+ const PipelineStatusCB& status_cb) OVERRIDE;
virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer,
const DecodeCB& decode_cb) OVERRIDE;
virtual void Reset(const base::Closure& closure) OVERRIDE;
virtual void Stop() OVERRIDE;
+ virtual scoped_refptr<VideoFrame> GetDecodeOutput() OVERRIDE;
virtual int GetMaxDecodeRequests() const OVERRIDE;
// Holds the next init/decode/reset callback from firing.
@@ -75,7 +76,8 @@
// Callback for updating |total_bytes_decoded_|.
void OnFrameDecoded(int buffer_size,
const DecodeCB& decode_cb,
- Status status);
+ Status status,
+ const scoped_refptr<VideoFrame>& video_frame);
// Runs |decode_cb| or puts it to |held_decode_callbacks_| depending on
// current value of |hold_decode_|.
@@ -89,6 +91,7 @@
base::ThreadChecker thread_checker_;
const size_t decoding_delay_;
+ const bool supports_get_decode_output_;
const int max_parallel_decoding_requests_;
State state_;
@@ -96,8 +99,6 @@
CallbackHolder<PipelineStatusCB> init_cb_;
CallbackHolder<base::Closure> reset_cb_;
- OutputCB output_cb_;
-
bool hold_decode_;
std::list<DecodeCB> held_decode_callbacks_;
« no previous file with comments | « media/filters/decrypting_video_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