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

Unified Diff: media/filters/decoder_stream_traits.h

Issue 692323002: Move Liveness from DemuxerStreamProvider to DemuxerStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/decoder_stream_traits.h
diff --git a/media/filters/decoder_stream_traits.h b/media/filters/decoder_stream_traits.h
index c995962b444dfe7d103aeb282180f5bd41521152..707ff1ca27fca0bbb8f49d68e16474d0fdd52890 100644
--- a/media/filters/decoder_stream_traits.h
+++ b/media/filters/decoder_stream_traits.h
@@ -25,21 +25,18 @@ template <>
struct DecoderStreamTraits<DemuxerStream::AUDIO> {
typedef AudioBuffer OutputType;
typedef AudioDecoder DecoderType;
- typedef AudioDecoderConfig DecoderConfigType;
typedef DecryptingAudioDecoder DecryptingDecoderType;
typedef base::Callback<void(bool success)> StreamInitCB;
typedef base::Callback<void(const scoped_refptr<OutputType>&)> OutputCB;
static std::string ToString();
- static void Initialize(DecoderType* decoder,
- const DecoderConfigType& config,
- bool low_delay,
- const PipelineStatusCB& status_cb,
- const OutputCB& output_cb);
+ static void InitializeDecoder(DecoderType* decoder,
+ DemuxerStream* stream,
+ const PipelineStatusCB& status_cb,
+ const OutputCB& output_cb);
static bool NeedsBitstreamConversion(DecoderType* decoder) { return false; }
static void ReportStatistics(const StatisticsCB& statistics_cb,
int bytes_decoded);
- static DecoderConfigType GetDecoderConfig(DemuxerStream& stream);
static scoped_refptr<OutputType> CreateEOSOutput();
};
@@ -47,21 +44,18 @@ template <>
struct DecoderStreamTraits<DemuxerStream::VIDEO> {
typedef VideoFrame OutputType;
typedef VideoDecoder DecoderType;
- typedef VideoDecoderConfig DecoderConfigType;
typedef DecryptingVideoDecoder DecryptingDecoderType;
typedef base::Callback<void(bool success)> StreamInitCB;
typedef base::Callback<void(const scoped_refptr<OutputType>&)> OutputCB;
static std::string ToString();
- static void Initialize(DecoderType* decoder,
- const DecoderConfigType& config,
- bool low_delay,
- const PipelineStatusCB& status_cb,
- const OutputCB& output_cb);
+ static void InitializeDecoder(DecoderType* decoder,
+ DemuxerStream* stream,
+ const PipelineStatusCB& status_cb,
+ const OutputCB& output_cb);
static bool NeedsBitstreamConversion(DecoderType* decoder);
static void ReportStatistics(const StatisticsCB& statistics_cb,
int bytes_decoded);
- static DecoderConfigType GetDecoderConfig(DemuxerStream& stream);
static scoped_refptr<OutputType> CreateEOSOutput();
};

Powered by Google App Engine
This is Rietveld 408576698