Index: webrtc/media/engine/webrtcvideoengine2.h |
diff --git a/webrtc/media/engine/webrtcvideoengine2.h b/webrtc/media/engine/webrtcvideoengine2.h |
index 16b7cc51577f306433e353df2565a1e700459a13..1a37d45da146eed61dc219f701c59c97c0be563c 100644 |
--- a/webrtc/media/engine/webrtcvideoengine2.h |
+++ b/webrtc/media/engine/webrtcvideoengine2.h |
@@ -23,6 +23,7 @@ |
#include "webrtc/media/base/videosinkinterface.h" |
#include "webrtc/media/base/videosourceinterface.h" |
#include "webrtc/call.h" |
+#include "webrtc/media/base/asyncproxy.h" |
#include "webrtc/media/base/mediaengine.h" |
#include "webrtc/media/engine/webrtcvideochannelfactory.h" |
#include "webrtc/media/engine/webrtcvideodecoderfactory.h" |
@@ -129,9 +130,7 @@ class WebRtcVideoEngine2 { |
rtc::scoped_ptr<WebRtcVideoEncoderFactory> simulcast_encoder_factory_; |
}; |
-class WebRtcVideoChannel2 : public VideoMediaChannel, |
- public webrtc::Transport, |
- public webrtc::LoadObserver { |
+class WebRtcVideoChannel2 : public VideoMediaChannel, 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); |
@@ -340,10 +342,12 @@ class WebRtcVideoChannel2 : public VideoMediaChannel, |
void SetDimensions(int width, int height, bool is_screencast) |
EXCLUSIVE_LOCKS_REQUIRED(lock_); |
+ rtc::ThreadChecker thread_checker_; |
const std::vector<uint32_t> ssrcs_; |
const std::vector<SsrcGroup> ssrc_groups_; |
webrtc::Call* const call_; |
rtc::VideoSinkWants sink_wants_; |
+ rtc::LoadObserverProxy load_proxy_; |
WebRtcVideoEncoderFactory* const external_encoder_factory_ |
GUARDED_BY(lock_); |