Chromium Code Reviews| Index: media/cast/sender/video_sender.h |
| diff --git a/media/cast/sender/video_sender.h b/media/cast/sender/video_sender.h |
| index d2dfa45f4212fe33c687f62cedb4db91eaf72e58..d2ba6145cbb22ed506baaa93430fd893538fc5e0 100644 |
| --- a/media/cast/sender/video_sender.h |
| +++ b/media/cast/sender/video_sender.h |
| @@ -37,16 +37,13 @@ class VideoSender : public FrameSender, |
| public: |
| VideoSender(scoped_refptr<CastEnvironment> cast_environment, |
| const VideoSenderConfig& video_config, |
| + const CastInitializationCallback& initialization_cb, |
| const CreateVideoEncodeAcceleratorCallback& create_vea_cb, |
| const CreateVideoEncodeMemoryCallback& create_video_encode_mem_cb, |
| CastTransportSender* const transport_sender); |
| virtual ~VideoSender(); |
| - CastInitializationStatus InitializationResult() const { |
| - return cast_initialization_status_; |
|
hubbe
2014/09/09 19:11:03
Can we get rid of this function on the audio side
Alpha Left Google
2014/09/09 19:41:18
Audio initialization status actually is in use, it
|
| - } |
| - |
| // Note: It is not guaranteed that |video_frame| will actually be encoded and |
| // sent, if VideoSender detects too many frames in flight. Therefore, clients |
| // should be careful about the rate at which this method is called. |
| @@ -70,6 +67,12 @@ class VideoSender : public FrameSender, |
| // Called by the |video_encoder_| with the next EncodeFrame to send. |
| void SendEncodedVideoFrame(int requested_bitrate_before_encode, |
| scoped_ptr<EncodedFrame> encoded_frame); |
| + |
| + // Called when the encoder is initialized or has failed to initialize. |
| + void OnEncoderInitialized( |
| + const CastInitializationCallback& initialization_cb, |
| + CastInitializationStatus status); |
| + |
| // If this value is non zero then a fixed value is used for bitrate. |
| // If external video encoder is used then bitrate will be fixed to |
| // (min_bitrate + max_bitrate) / 2. |