Reland "Prepares PacingController for simplified packet queue."
This is a reland of acdc22d7845c5dde7c23366110e54e5d26127c85 Original change's description: > Prepares PacingController for simplified packet queue. > > This CL removes references to RoundRobinPacketQueue::QueuedPacket, > other than the method to release an RtpPacketToSend. It also moves > both the BeginPop() and FinalizePop() to within a single helper > method. > > A follow-up cleanup of the packet queue will stop exposing the > QueuedPacket struct and replaces the the pop-methods with a single > new one that just returns an RtpPacketToSend. > > Bug: webrtc:10809 > Change-Id: I5208a93e12e6b56714d483cc12d2a37225ea8e5e > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/159889 > Commit-Queue: Erik Språng <sprang@webrtc.org> > Reviewed-by: Philip Eliasson <philipel@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#29820} TBR=philipel@webrtc.org Bug: webrtc:10809 Change-Id: Id8196d9348d7fa69a5e410367b8a88e6039ef1b8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/160205 Commit-Queue: Erik Språng <sprang@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29867}
This commit is contained in:
@ -150,11 +150,12 @@ class PacingController {
|
||||
DataSize PaddingToAdd(absl::optional<DataSize> recommended_probe_size,
|
||||
DataSize data_sent) const;
|
||||
|
||||
RoundRobinPacketQueue::QueuedPacket* GetPendingPacket(
|
||||
std::unique_ptr<RtpPacketToSend> GetPendingPacket(
|
||||
const PacedPacketInfo& pacing_info,
|
||||
Timestamp target_send_time,
|
||||
Timestamp now);
|
||||
void OnPacketSent(RoundRobinPacketQueue::QueuedPacket* packet,
|
||||
void OnPacketSent(RtpPacketToSend::Type packet_type,
|
||||
DataSize packet_size,
|
||||
Timestamp send_time);
|
||||
void OnPaddingSent(DataSize padding_sent);
|
||||
|
||||
@ -170,6 +171,7 @@ class PacingController {
|
||||
const bool send_padding_if_silent_;
|
||||
const bool pace_audio_;
|
||||
const bool small_first_probe_packet_;
|
||||
const bool send_side_bwe_with_overhead_;
|
||||
|
||||
TimeDelta min_packet_limit_;
|
||||
|
||||
|
Reference in New Issue
Block a user