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

Unified Diff: content/renderer/media/rtc_video_decoder.h

Issue 7461016: Replace VideoDecoder::media_format() with significantly simpler width()/height() methods. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: fixes Created 9 years, 5 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 | « no previous file | content/renderer/media/rtc_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_video_decoder.h
diff --git a/content/renderer/media/rtc_video_decoder.h b/content/renderer/media/rtc_video_decoder.h
index 285861129dd96becbaa1260804ac4c2a5939bc46..a242b40183165963a8de89ff3f317557e171e5d3 100644
--- a/content/renderer/media/rtc_video_decoder.h
+++ b/content/renderer/media/rtc_video_decoder.h
@@ -32,9 +32,10 @@ class RTCVideoDecoder
virtual void Initialize(media::DemuxerStream* demuxer_stream,
media::FilterCallback* filter_callback,
media::StatisticsCallback* stat_callback);
- virtual const media::MediaFormat& media_format();
virtual void ProduceVideoFrame(scoped_refptr<media::VideoFrame> video_frame);
virtual bool ProvidesBuffer();
+ virtual int width();
+ virtual int height();
// cricket::VideoRenderer implementation
virtual bool SetSize(int width, int height, int reserved);
@@ -60,7 +61,6 @@ class RTCVideoDecoder
size_t height_;
std::string url_;
DecoderState state_;
- media::MediaFormat media_format_;
std::deque<scoped_refptr<media::VideoFrame> > frame_queue_available_;
// Used for accessing frame queue from another thread.
base::Lock lock_;
« no previous file with comments | « no previous file | content/renderer/media/rtc_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698