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

Unified Diff: webrtc/modules/congestion_controller/probe_bitrate_estimator.cc

Issue 2407143002: Remove GetFeedbackInterval in sender side BWE. (Closed)
Patch Set: Respond to comments Created 3 years, 9 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/modules/congestion_controller/probe_bitrate_estimator.cc
diff --git a/webrtc/modules/congestion_controller/probe_bitrate_estimator.cc b/webrtc/modules/congestion_controller/probe_bitrate_estimator.cc
index c69bd1a429da5b0eb3e867644d4eaf5b97706cf1..8fe82c4997a69ccbbc5d411ea7e3cc935fda1676 100644
--- a/webrtc/modules/congestion_controller/probe_bitrate_estimator.cc
+++ b/webrtc/modules/congestion_controller/probe_bitrate_estimator.cc
@@ -112,7 +112,15 @@ int ProbeBitrateEstimator::HandleProbeAndEstimateBitrate(
<< " [receive: " << receive_size << " bytes / "
<< receive_interval_ms << " ms = " << receive_bps / 1000
<< " kb/s]";
- return std::min(send_bps, receive_bps);
+
+ estimated_bitrate_bps_ = rtc::Optional<int>(std::min(send_bps, receive_bps));
+ return *estimated_bitrate_bps_;
+}
+
+rtc::Optional<int> ProbeBitrateEstimator::FetchLastEstimatedBitrateBps() {
stefan-webrtc 2017/03/28 08:38:28 FetchAndReset...
michaelt 2017/03/28 09:59:13 Done.
+ rtc::Optional<int> estimated_bitrate_bps = estimated_bitrate_bps_;
+ estimated_bitrate_bps_.reset();
+ return estimated_bitrate_bps;
}
void ProbeBitrateEstimator::EraseOldClusters(int64_t timestamp_ms) {

Powered by Google App Engine
This is Rietveld 408576698