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

Side by Side Diff: webrtc/modules/congestion_controller/congestion_controller.cc

Issue 2112643005: Remove audio/video distinction for probe packets. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@52
Patch Set: rebase errors Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 29 matching lines...) Expand all
40 crit_sect_(CriticalSectionWrapper::CreateCriticalSection()), 40 crit_sect_(CriticalSectionWrapper::CreateCriticalSection()),
41 rbe_(new RemoteBitrateEstimatorSingleStream(observer_, clock_)), 41 rbe_(new RemoteBitrateEstimatorSingleStream(observer_, clock_)),
42 using_absolute_send_time_(false), 42 using_absolute_send_time_(false),
43 packets_since_absolute_send_time_(0), 43 packets_since_absolute_send_time_(0),
44 min_bitrate_bps_(RemoteBitrateEstimator::kDefaultMinBitrateBps) {} 44 min_bitrate_bps_(RemoteBitrateEstimator::kDefaultMinBitrateBps) {}
45 45
46 virtual ~WrappingBitrateEstimator() {} 46 virtual ~WrappingBitrateEstimator() {}
47 47
48 void IncomingPacket(int64_t arrival_time_ms, 48 void IncomingPacket(int64_t arrival_time_ms,
49 size_t payload_size, 49 size_t payload_size,
50 const RTPHeader& header, 50 const RTPHeader& header) override {
51 bool was_paced) override {
52 CriticalSectionScoped cs(crit_sect_.get()); 51 CriticalSectionScoped cs(crit_sect_.get());
53 PickEstimatorFromHeader(header); 52 PickEstimatorFromHeader(header);
54 rbe_->IncomingPacket(arrival_time_ms, payload_size, header, was_paced); 53 rbe_->IncomingPacket(arrival_time_ms, payload_size, header);
55 } 54 }
56 55
57 void Process() override { 56 void Process() override {
58 CriticalSectionScoped cs(crit_sect_.get()); 57 CriticalSectionScoped cs(crit_sect_.get());
59 rbe_->Process(); 58 rbe_->Process();
60 } 59 }
61 60
62 int64_t TimeUntilNextProcess() override { 61 int64_t TimeUntilNextProcess() override {
63 CriticalSectionScoped cs(crit_sect_.get()); 62 CriticalSectionScoped cs(crit_sect_.get());
64 return rbe_->TimeUntilNextProcess(); 63 return rbe_->TimeUntilNextProcess();
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 bool CongestionController::IsSendQueueFull() const { 338 bool CongestionController::IsSendQueueFull() const {
340 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs; 339 return pacer_->ExpectedQueueTimeMs() > PacedSender::kMaxQueueLengthMs;
341 } 340 }
342 341
343 bool CongestionController::IsNetworkDown() const { 342 bool CongestionController::IsNetworkDown() const {
344 rtc::CritScope cs(&critsect_); 343 rtc::CritScope cs(&critsect_);
345 return network_state_ == kNetworkDown; 344 return network_state_ == kNetworkDown;
346 } 345 }
347 346
348 } // namespace webrtc 347 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698