Moving SetPacingFactor and allocation limits to SSCC.

This CL adds methods to the SendSideCongestionController (SSCC)
interface for configuring pacing factor and allocation based data rate limits.
This means that old SSCC implement the same interface as the new, task
queue based SSCC. This also allows merging the max total allocated
bit rate into SetAllocatedSendBitrateLimits.

This is done in preparation for an upcoming CL where the SSCC version
is controlled by a field trial.

Bug: webrtc:8415
Change-Id: I4d5446a3bedd5b0c725dbd009fb75815fd661eff
Reviewed-on: https://webrtc-review.googlesource.com/61320
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22408}
This commit is contained in:
Sebastian Jansson
2018-03-13 11:40:34 +01:00
committed by Commit Bot
parent ca8438b6bd
commit 68ee4653ef
6 changed files with 35 additions and 35 deletions

View File

@ -68,7 +68,9 @@ class SendSideCongestionController
int start_bitrate_bps,
int max_bitrate_bps) override;
void SetMaxTotalAllocatedBitrate(int max_total_allocated_bitrate) override;
void SetAllocatedSendBitrateLimits(int64_t min_send_bitrate_bps,
int64_t max_padding_bitrate_bps,
int64_t max_total_bitrate_bps) override;
// Resets the BWE state. Note the first argument is the bitrate_bps.
void OnNetworkRouteChanged(const rtc::NetworkRoute& network_route,
@ -114,6 +116,8 @@ class SendSideCongestionController
std::vector<PacketFeedback> GetTransportFeedbackVector() const;
void SetPacingFactor(float pacing_factor) override;
private:
void MaybeTriggerOnNetworkChanged();