Index: webrtc/media/engine/webrtcvideoengine2.h |
diff --git a/webrtc/media/engine/webrtcvideoengine2.h b/webrtc/media/engine/webrtcvideoengine2.h |
index 16b7cc51577f306433e353df2565a1e700459a13..5216a5ca78f47598f0103623a5a68a20721c6243 100644 |
--- a/webrtc/media/engine/webrtcvideoengine2.h |
+++ b/webrtc/media/engine/webrtcvideoengine2.h |
@@ -130,8 +130,7 @@ class WebRtcVideoEngine2 { |
}; |
class WebRtcVideoChannel2 : public VideoMediaChannel, |
- public webrtc::Transport, |
- public webrtc::LoadObserver { |
+ public webrtc::Transport { |
public: |
WebRtcVideoChannel2(webrtc::Call* call, |
const MediaConfig& config, |
@@ -168,8 +167,6 @@ class WebRtcVideoChannel2 : public VideoMediaChannel, |
void OnReadyToSend(bool ready) override; |
void SetInterface(NetworkInterface* iface) override; |
- void OnLoadUpdate(Load load) override; |
- |
// Implemented for VideoMediaChannelTest. |
bool sending() const { return sending_; } |
uint32_t GetDefaultSendChannelSsrc() { return default_send_ssrc_; } |
@@ -229,7 +226,8 @@ class WebRtcVideoChannel2 : public VideoMediaChannel, |
// Wrapper for the sender part, this is where the capturer is connected and |
// frames are then converted from cricket frames to webrtc frames. |
class WebRtcVideoSendStream |
- : public rtc::VideoSinkInterface<cricket::VideoFrame> { |
+ : public rtc::VideoSinkInterface<cricket::VideoFrame>, |
+ public webrtc::LoadObserver { |
public: |
WebRtcVideoSendStream( |
webrtc::Call* call, |
@@ -237,6 +235,7 @@ class WebRtcVideoChannel2 : public VideoMediaChannel, |
const webrtc::VideoSendStream::Config& config, |
WebRtcVideoEncoderFactory* external_encoder_factory, |
const VideoOptions& options, |
+ bool enable_cpu_overuse_detection, |
int max_bitrate_bps, |
const rtc::Optional<VideoCodecSettings>& codec_settings, |
const std::vector<webrtc::RtpExtension>& rtp_extensions, |
@@ -255,6 +254,9 @@ class WebRtcVideoChannel2 : public VideoMediaChannel, |
void Start(); |
void Stop(); |
+ // Implements webrtc::LoadObserver. |
+ void OnLoadUpdate(Load load) override; |
+ |
const std::vector<uint32_t>& GetSsrcs() const; |
VideoSenderInfo GetVideoSenderInfo(); |
void FillBandwidthEstimationInfo(BandwidthEstimationInfo* bwe_info); |