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

Unified Diff: webrtc/modules/video_coding/video_sender.cc

Issue 2119503002: Remove all old suspension logic. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « webrtc/modules/video_coding/video_coding_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/video_sender.cc
diff --git a/webrtc/modules/video_coding/video_sender.cc b/webrtc/modules/video_coding/video_sender.cc
index d7d811092100a198a5ed4f7a9f6f4ca9d6c7fc00..f26be34776f8c10ce72087edd6bbcb2cd3693ec4 100644
--- a/webrtc/modules/video_coding/video_sender.cc
+++ b/webrtc/modules/video_coding/video_sender.cc
@@ -364,23 +364,5 @@ int32_t VideoSender::EnableFrameDropper(bool enable) {
_mediaOpt.EnableFrameDropper(enable);
return VCM_OK;
}
-
-void VideoSender::SuspendBelowMinBitrate() {
- RTC_DCHECK(main_thread_.CalledOnValidThread());
- int threshold_bps;
- if (current_codec_.numberOfSimulcastStreams == 0) {
- threshold_bps = current_codec_.minBitrate * 1000;
- } else {
- threshold_bps = current_codec_.simulcastStream[0].minBitrate * 1000;
- }
- // Set the hysteresis window to be at 10% of the threshold, but at least
- // 10 kbps.
- int window_bps = std::max(threshold_bps / 10, 10000);
- _mediaOpt.SuspendBelowMinBitrate(threshold_bps, window_bps);
-}
-
-bool VideoSender::VideoSuspended() const {
- return _mediaOpt.IsVideoSuspended();
-}
} // namespace vcm
} // namespace webrtc
« no previous file with comments | « webrtc/modules/video_coding/video_coding_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698