| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 call_duration_s_ = static_cast<float>(end_time_ - begin_time_) / 1000000; | 444 call_duration_s_ = static_cast<float>(end_time_ - begin_time_) / 1000000; |
| 445 } | 445 } |
| 446 | 446 |
| 447 class BitrateObserver : public CongestionController::Observer, | 447 class BitrateObserver : public CongestionController::Observer, |
| 448 public RemoteBitrateObserver { | 448 public RemoteBitrateObserver { |
| 449 public: | 449 public: |
| 450 BitrateObserver() : last_bitrate_bps_(0), bitrate_updated_(false) {} | 450 BitrateObserver() : last_bitrate_bps_(0), bitrate_updated_(false) {} |
| 451 | 451 |
| 452 void OnNetworkChanged(uint32_t bitrate_bps, | 452 void OnNetworkChanged(uint32_t bitrate_bps, |
| 453 uint8_t fraction_loss, | 453 uint8_t fraction_loss, |
| 454 int64_t rtt_ms) override { | 454 int64_t rtt_ms, |
| 455 int64_t probing_interval_ms) override { |
| 455 last_bitrate_bps_ = bitrate_bps; | 456 last_bitrate_bps_ = bitrate_bps; |
| 456 bitrate_updated_ = true; | 457 bitrate_updated_ = true; |
| 457 } | 458 } |
| 458 | 459 |
| 459 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, | 460 void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs, |
| 460 uint32_t bitrate) override {} | 461 uint32_t bitrate) override {} |
| 461 | 462 |
| 462 uint32_t last_bitrate_bps() const { return last_bitrate_bps_; } | 463 uint32_t last_bitrate_bps() const { return last_bitrate_bps_; } |
| 463 bool GetAndResetBitrateUpdated() { | 464 bool GetAndResetBitrateUpdated() { |
| 464 bool bitrate_updated = bitrate_updated_; | 465 bool bitrate_updated = bitrate_updated_; |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 point.y -= estimated_base_delay_ms; | 1156 point.y -= estimated_base_delay_ms; |
| 1156 // Add the data set to the plot. | 1157 // Add the data set to the plot. |
| 1157 plot->series_list_.push_back(std::move(time_series)); | 1158 plot->series_list_.push_back(std::move(time_series)); |
| 1158 | 1159 |
| 1159 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); | 1160 plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin); |
| 1160 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); | 1161 plot->SetSuggestedYAxis(0, 10, "Delay (ms)", kBottomMargin, kTopMargin); |
| 1161 plot->SetTitle("Network Delay Change."); | 1162 plot->SetTitle("Network Delay Change."); |
| 1162 } | 1163 } |
| 1163 } // namespace plotting | 1164 } // namespace plotting |
| 1164 } // namespace webrtc | 1165 } // namespace webrtc |
| OLD | NEW |