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

Unified Diff: media/filters/decoder_stream.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/decoder_selector.cc ('k') | media/filters/decoder_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decoder_stream.h
===================================================================
--- media/filters/decoder_stream.h (revision 277175)
+++ media/filters/decoder_stream.h (working copy)
@@ -88,9 +88,6 @@
// behavior.
bool CanReadWithoutStalling() const;
- // Returns maximum concurrent decode requests for the current |decoder_|.
- int GetMaxDecodeRequests() const;
-
// Returns true if one more decode request can be submitted to the decoder.
bool CanDecodeMore() const;
@@ -144,11 +141,10 @@
void FlushDecoder();
// Callback for Decoder::Decode().
- void OnDecodeDone(int buffer_size, bool end_of_stream, DecoderStatus status);
+ void OnDecodeOutputReady(int buffer_size,
+ DecoderStatus status,
+ const scoped_refptr<Output>& output);
- // Output callback passed to Decoder::Initialize().
- void OnDecodeOutputReady(const scoped_refptr<Output>& output);
-
// Reads a buffer from |stream_| and returns the result via OnBufferReady().
void ReadFromDemuxerStream();
@@ -212,7 +208,7 @@
bool DecoderStream<DemuxerStream::AUDIO>::CanReadWithoutStalling() const;
template <>
-int DecoderStream<DemuxerStream::AUDIO>::GetMaxDecodeRequests() const;
+bool DecoderStream<DemuxerStream::AUDIO>::CanDecodeMore() const;
typedef DecoderStream<DemuxerStream::VIDEO> VideoFrameStream;
typedef DecoderStream<DemuxerStream::AUDIO> AudioBufferStream;
« no previous file with comments | « media/filters/decoder_selector.cc ('k') | media/filters/decoder_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698