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

Unified Diff: webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc

Issue 1363573002: Wire up transport sequence number / send time callbacks to webrtc via libjingle. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add missing updated_options Created 5 years, 2 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/remote_bitrate_estimator/transport_feedback_adapter.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc b/webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc
index 5f51bc55e9c10e92a2591054a888a36faec645be..11922d298ee1d79c1650fea9fdd87606516727fe 100644
--- a/webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc
+++ b/webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc
@@ -49,11 +49,17 @@ void TransportFeedbackAdapter::SetBitrateEstimator(
}
}
-void TransportFeedbackAdapter::OnPacketSent(const PacketInfo& info) {
+void TransportFeedbackAdapter::OnSentPacket(const PacketInfo& info) {
rtc::CritScope cs(&lock_);
send_time_history_.AddAndRemoveOld(info);
}
+void TransportFeedbackAdapter::UpdateSendTime(uint16_t sequence_number,
+ int64_t send_time_ms) {
+ rtc::CritScope cs(&lock_);
+ send_time_history_.UpdateSendTime(sequence_number, send_time_ms);
+}
+
void TransportFeedbackAdapter::OnTransportFeedback(
const rtcp::TransportFeedback& feedback) {
int64_t timestamp_us = feedback.GetBaseTimeUs();

Powered by Google App Engine
This is Rietveld 408576698