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

Unified Diff: webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h

Issue 2381833003: Change TWCC send interval to reduce overhead on low BW situations. (Closed)
Patch Set: fix nit's Created 4 years, 1 month 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/remote_bitrate_estimator/remote_estimator_proxy.h
diff --git a/webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h b/webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h
index 127886300d8f95c2fd14d78ebc0ffae9ee5c1094..71099bf9edda366c4a5694f5e15e15c2b0eefb10 100644
--- a/webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h
+++ b/webrtc/modules/remote_bitrate_estimator/remote_estimator_proxy.h
@@ -47,8 +47,11 @@ class RemoteEstimatorProxy : public RemoteBitrateEstimator {
void SetMinBitrate(int min_bitrate_bps) override {}
int64_t TimeUntilNextProcess() override;
void Process() override;
+ void OnBitrateChanged(int bitrate);
- static const int kDefaultProcessIntervalMs;
+ static const int kMinSendIntervalMs;
+ static const int kMaxSendIntervalMs;
+ static const int kDefaultSendIntervalMs;
static const int kBackWindowMs;
private:
@@ -68,6 +71,7 @@ class RemoteEstimatorProxy : public RemoteBitrateEstimator {
int64_t window_start_seq_ GUARDED_BY(&lock_);
// Map unwrapped seq -> time.
std::map<int64_t, int64_t> packet_arrival_times_ GUARDED_BY(&lock_);
+ int64_t send_interval_ms_ GUARDED_BY(&lock_);
};
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698