Chromium Code Reviews| Index: media/cast/video_receiver/video_decoder.h |
| diff --git a/media/cast/video_receiver/video_decoder.h b/media/cast/video_receiver/video_decoder.h |
| index e98768c215c840d8e2a04f1cd6c5608f094837ba..5778930c60779b76fe6d3fe1119210a7d713dd9f 100644 |
| --- a/media/cast/video_receiver/video_decoder.h |
| +++ b/media/cast/video_receiver/video_decoder.h |
| @@ -19,14 +19,16 @@ class Vp8Decoder; |
| // thread. |
| class VideoDecoder : public base::NonThreadSafe { |
| public: |
| - explicit VideoDecoder(const VideoReceiverConfig& video_config); |
| + VideoDecoder(const VideoReceiverConfig& video_config, |
| + scoped_refptr<CastEnvironment> cast_environment); |
| virtual ~VideoDecoder(); |
| - // Decode a video frame. Decoded (raw) frame will be returned in the |
| - // provided video_frame. |
| + // Decode a video frame. Decoded (raw) frame will be returned via the |
| + // provided callback |
| bool DecodeVideoFrame(const EncodedVideoFrame* encoded_frame, |
| const base::TimeTicks render_time, |
| - I420VideoFrame* video_frame); |
| + const VideoFrameDecodedCallback& |
|
Alpha Left Google
2013/11/06 02:22:06
Call back doesn't need to be const ref. You can pa
mikhal
2013/11/06 18:29:16
Done.
|
| + frame_decoded_callback); |
| private: |
| VideoCodec codec_; |