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

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

Issue 2997883002: Video/Screenshare loopback tool.
Patch Set: Rebase Created 3 years, 4 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.h
diff --git a/webrtc/modules/congestion_controller/probe_bitrate_estimator.h b/webrtc/modules/congestion_controller/probe_bitrate_estimator.h
index 1666a1a584f00f68e6158e2eb507dce0329bbc5b..4d936080d4118d817b287e58d3eae5b9fa8c4bca 100644
--- a/webrtc/modules/congestion_controller/probe_bitrate_estimator.h
+++ b/webrtc/modules/congestion_controller/probe_bitrate_estimator.h
@@ -28,7 +28,7 @@ class ProbeBitrateEstimator {
// Returns the estimated bitrate if the probe completes a valid cluster.
int HandleProbeAndEstimateBitrate(const PacketFeedback& packet_feedback);
- rtc::Optional<int> FetchAndResetLastEstimatedBitrateBps();
+ rtc::Optional<int> FetchAndResetLastEstimatedBitrateBps(int64_t timeout = 0);
private:
struct AggregatedCluster {
@@ -48,6 +48,9 @@ class ProbeBitrateEstimator {
std::map<int, AggregatedCluster> clusters_;
RtcEventLog* const event_log_;
rtc::Optional<int> estimated_bitrate_bps_;
+ int64_t last_estimate_update_ms_ = 0;
+ int64_t start_ = 0;
+ int cluster_id_ = -1;
};
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698