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

Unified Diff: media/filters/decoder_stream_traits.h

Issue 2815303006: Convert MediaLog from being ref counted to owned by WebMediaPlayer. (Closed)
Patch Set: Rebase. Created 3 years, 8 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_stream.cc ('k') | media/filters/decoder_stream_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decoder_stream_traits.h
diff --git a/media/filters/decoder_stream_traits.h b/media/filters/decoder_stream_traits.h
index e00de2f22e2012c4c02ad65d08aceb9c9d14f79a..e84e37dac39eb22c6d528761668ba9e7ee6a67e4 100644
--- a/media/filters/decoder_stream_traits.h
+++ b/media/filters/decoder_stream_traits.h
@@ -44,7 +44,7 @@ class MEDIA_EXPORT DecoderStreamTraits<DemuxerStream::AUDIO> {
static scoped_refptr<OutputType> CreateEOSOutput();
static DecoderConfigType GetDecoderConfig(DemuxerStream* stream);
- explicit DecoderStreamTraits(const scoped_refptr<MediaLog>& media_log);
+ explicit DecoderStreamTraits(MediaLog* media_log);
void ReportStatistics(const StatisticsCB& statistics_cb, int bytes_decoded);
void InitializeDecoder(DecoderType* decoder,
@@ -63,7 +63,7 @@ class MEDIA_EXPORT DecoderStreamTraits<DemuxerStream::AUDIO> {
// drift.
std::unique_ptr<AudioTimestampValidator> audio_ts_validator_;
- scoped_refptr<MediaLog> media_log_;
+ MediaLog* media_log_;
};
template <>
@@ -81,7 +81,7 @@ class MEDIA_EXPORT DecoderStreamTraits<DemuxerStream::VIDEO> {
static scoped_refptr<OutputType> CreateEOSOutput();
static DecoderConfigType GetDecoderConfig(DemuxerStream* stream);
- explicit DecoderStreamTraits(const scoped_refptr<MediaLog>& media_log);
+ explicit DecoderStreamTraits(MediaLog* media_log);
void ReportStatistics(const StatisticsCB& statistics_cb, int bytes_decoded);
void InitializeDecoder(DecoderType* decoder,
« no previous file with comments | « media/filters/decoder_stream.cc ('k') | media/filters/decoder_stream_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698