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

Unified Diff: webrtc/modules/pacing/packet_router.cc

Issue 2032473002: Revert "Revert of Propagate probing cluster id to SendTimeHistory. (patchset #5 id:80001 of https:/… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « webrtc/modules/pacing/packet_router.h ('k') | webrtc/modules/pacing/packet_router_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/pacing/packet_router.cc
diff --git a/webrtc/modules/pacing/packet_router.cc b/webrtc/modules/pacing/packet_router.cc
index 1884958aca48f8c6286c13a45d64fe7ec9aca8df..be45615ca5b89c0dc23dad4be9c85775cab8744e 100644
--- a/webrtc/modules/pacing/packet_router.cc
+++ b/webrtc/modules/pacing/packet_router.cc
@@ -50,20 +50,22 @@ bool PacketRouter::TimeToSendPacket(uint32_t ssrc,
for (auto* rtp_module : rtp_modules_) {
if (rtp_module->SendingMedia() && ssrc == rtp_module->SSRC()) {
return rtp_module->TimeToSendPacket(ssrc, sequence_number,
- capture_timestamp, retransmission);
+ capture_timestamp, retransmission,
+ probe_cluster_id);
}
}
return true;
}
-size_t PacketRouter::TimeToSendPadding(size_t bytes_to_send) {
+size_t PacketRouter::TimeToSendPadding(size_t bytes_to_send,
+ int probe_cluster_id) {
RTC_DCHECK(pacer_thread_checker_.CalledOnValidThread());
size_t total_bytes_sent = 0;
rtc::CritScope cs(&modules_crit_);
for (RtpRtcp* module : rtp_modules_) {
if (module->SendingMedia()) {
- size_t bytes_sent =
- module->TimeToSendPadding(bytes_to_send - total_bytes_sent);
+ size_t bytes_sent = module->TimeToSendPadding(
+ bytes_to_send - total_bytes_sent, probe_cluster_id);
total_bytes_sent += bytes_sent;
if (total_bytes_sent >= bytes_to_send)
break;
« no previous file with comments | « webrtc/modules/pacing/packet_router.h ('k') | webrtc/modules/pacing/packet_router_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698