| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 RTC_DCHECK(bitrate_estimator_.get() != nullptr); | 135 RTC_DCHECK(bitrate_estimator_.get() != nullptr); |
| 136 bitrate_estimator_->IncomingPacketFeedbackVector(packet_feedback_vector); | 136 bitrate_estimator_->IncomingPacketFeedbackVector(packet_feedback_vector); |
| 137 } | 137 } |
| 138 | 138 |
| 139 void TransportFeedbackAdapter::OnReceiveBitrateChanged( | 139 void TransportFeedbackAdapter::OnReceiveBitrateChanged( |
| 140 const std::vector<uint32_t>& ssrcs, | 140 const std::vector<uint32_t>& ssrcs, |
| 141 uint32_t bitrate) { | 141 uint32_t bitrate) { |
| 142 bitrate_controller_->UpdateDelayBasedEstimate(bitrate); | 142 bitrate_controller_->UpdateDelayBasedEstimate(bitrate); |
| 143 } | 143 } |
| 144 | 144 |
| 145 void TransportFeedbackAdapter::OnProbeBitrate(uint32_t bitrate) { |
| 146 bitrate_controller_->UpdateProbeBitrate(bitrate); |
| 147 } |
| 148 |
| 145 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, | 149 void TransportFeedbackAdapter::OnRttUpdate(int64_t avg_rtt_ms, |
| 146 int64_t max_rtt_ms) { | 150 int64_t max_rtt_ms) { |
| 147 RTC_DCHECK(bitrate_estimator_.get() != nullptr); | 151 RTC_DCHECK(bitrate_estimator_.get() != nullptr); |
| 148 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); | 152 bitrate_estimator_->OnRttUpdate(avg_rtt_ms, max_rtt_ms); |
| 149 } | 153 } |
| 150 | 154 |
| 151 } // namespace webrtc | 155 } // namespace webrtc |
| OLD | NEW |