Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Unified Diff: webrtc/media/engine/webrtcvideoengine2.h

Issue 1695263002: Move direct use of VideoCapturer::VideoAdapter to VideoSinkWants. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698