| Index: webrtc/media/engine/webrtcvideoengine2.h
|
| diff --git a/webrtc/media/engine/webrtcvideoengine2.h b/webrtc/media/engine/webrtcvideoengine2.h
|
| index 4255b2d00e7b03ef11438acb9f53bf1317fdddee..b034cd06e5a908d9122a874fde94164520b31c1a 100644
|
| --- a/webrtc/media/engine/webrtcvideoengine2.h
|
| +++ b/webrtc/media/engine/webrtcvideoengine2.h
|
| @@ -242,8 +242,7 @@ class WebRtcVideoChannel2 : public VideoMediaChannel, public webrtc::Transport {
|
| // frames are then converted from cricket frames to webrtc frames.
|
| class WebRtcVideoSendStream
|
| : public rtc::VideoSinkInterface<cricket::VideoFrame>,
|
| - public rtc::VideoSourceInterface<webrtc::VideoFrame>,
|
| - public webrtc::LoadObserver {
|
| + public rtc::VideoSourceInterface<webrtc::VideoFrame> {
|
| public:
|
| WebRtcVideoSendStream(
|
| webrtc::Call* call,
|
| @@ -276,13 +275,9 @@ class WebRtcVideoChannel2 : public VideoMediaChannel, public webrtc::Transport {
|
| bool SetVideoSend(bool mute,
|
| const VideoOptions* options,
|
| rtc::VideoSourceInterface<cricket::VideoFrame>* source);
|
| - void DisconnectSource();
|
|
|
| void SetSend(bool send);
|
|
|
| - // Implements webrtc::LoadObserver.
|
| - void OnLoadUpdate(Load load) override;
|
| -
|
| const std::vector<uint32_t>& GetSsrcs() const;
|
| VideoSenderInfo GetVideoSenderInfo(bool log_stats);
|
| void FillBandwidthEstimationInfo(BandwidthEstimationInfo* bwe_info);
|
| @@ -319,9 +314,9 @@ class WebRtcVideoChannel2 : public VideoMediaChannel, public webrtc::Transport {
|
| bool external;
|
| };
|
|
|
| - // TODO(perkj): VideoFrameInfo is currently used for CPU adaptation since
|
| - // we currently do not express CPU overuse using SinkWants in lower
|
| - // layers. This will be fixed in an upcoming cl.
|
| + // TODO(perkj): VideoFrameInfo is currently used for sending a black frame
|
| + // when the video source is removed. Consider moving that logic to
|
| + // VieEncoder or remove it.
|
| struct VideoFrameInfo {
|
| VideoFrameInfo()
|
| : width(0),
|
| @@ -357,17 +352,7 @@ class WebRtcVideoChannel2 : public VideoMediaChannel, public webrtc::Transport {
|
| const std::vector<uint32_t> ssrcs_ ACCESS_ON(&thread_checker_);
|
| const std::vector<SsrcGroup> ssrc_groups_ ACCESS_ON(&thread_checker_);
|
| webrtc::Call* const call_;
|
| - rtc::VideoSinkWants sink_wants_ ACCESS_ON(&thread_checker_);
|
| - // Counter used for deciding if the video resolution is currently
|
| - // restricted by CPU usage. It is reset if |source_| is changed.
|
| - int cpu_restricted_counter_;
|
| - // Total number of times resolution as been requested to be changed due to
|
| - // CPU adaptation.
|
| - int number_of_cpu_adapt_changes_ ACCESS_ON(&thread_checker_);
|
| - // Total number of frames sent to |stream_|.
|
| - int frame_count_ GUARDED_BY(lock_);
|
| - // Total number of cpu restricted frames sent to |stream_|.
|
| - int cpu_restricted_frame_count_ GUARDED_BY(lock_);
|
| + const bool enable_cpu_overuse_detection_;
|
| rtc::VideoSourceInterface<cricket::VideoFrame>* source_
|
| ACCESS_ON(&thread_checker_);
|
| WebRtcVideoEncoderFactory* const external_encoder_factory_
|
|
|