OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 void TransportFeedbackAdapter::SetBitrateEstimator( | 53 void TransportFeedbackAdapter::SetBitrateEstimator( |
54 RemoteBitrateEstimator* rbe) { | 54 RemoteBitrateEstimator* rbe) { |
55 if (bitrate_estimator_.get() != rbe) { | 55 if (bitrate_estimator_.get() != rbe) { |
56 bitrate_estimator_.reset(rbe); | 56 bitrate_estimator_.reset(rbe); |
57 } | 57 } |
58 } | 58 } |
59 | 59 |
60 void TransportFeedbackAdapter::AddPacket(uint16_t sequence_number, | 60 void TransportFeedbackAdapter::AddPacket(uint16_t sequence_number, |
61 size_t length, | 61 size_t length, |
62 bool was_paced, | |
63 int probe_cluster_id) { | 62 int probe_cluster_id) { |
64 rtc::CritScope cs(&lock_); | 63 rtc::CritScope cs(&lock_); |
65 send_time_history_.AddAndRemoveOld(sequence_number, length, was_paced, | 64 send_time_history_.AddAndRemoveOld(sequence_number, length, probe_cluster_id); |
66 probe_cluster_id); | |
67 } | 65 } |
68 | 66 |
69 void TransportFeedbackAdapter::OnSentPacket(uint16_t sequence_number, | 67 void TransportFeedbackAdapter::OnSentPacket(uint16_t sequence_number, |
70 int64_t send_time_ms) { | 68 int64_t send_time_ms) { |
71 rtc::CritScope cs(&lock_); | 69 rtc::CritScope cs(&lock_); |
72 send_time_history_.OnSentPacket(sequence_number, send_time_ms); | 70 send_time_history_.OnSentPacket(sequence_number, send_time_ms); |
73 } | 71 } |
74 | 72 |
75 void TransportFeedbackAdapter::OnTransportFeedback( | 73 void TransportFeedbackAdapter::OnTransportFeedback( |
76 const rtcp::TransportFeedback& feedback) { | 74 const rtcp::TransportFeedback& feedback) { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 bitrate_controller_->UpdateDelayBasedEstimate(bitrate); | 136 bitrate_controller_->UpdateDelayBasedEstimate(bitrate); |
139 } | 137 } |
140 | 138 |
141 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, | 139 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, |
142 int64_t max_rtt_ms) { | 140 int64_t max_rtt_ms) { |
143 RTC_DCHECK(bitrate_estimator_.get() != nullptr); | 141 RTC_DCHECK(bitrate_estimator_.get() != nullptr); |
144 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); | 142 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); |
145 } | 143 } |
146 | 144 |
147 } // namespace webrtc | 145 } // namespace webrtc |
OLD | NEW |