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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 ObserverAllocation NormalRateAllocation(uint32_t bitrate, | 105 ObserverAllocation NormalRateAllocation(uint32_t bitrate, |
106 uint32_t sum_min_bitrates) | 106 uint32_t sum_min_bitrates) |
107 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); | 107 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); |
108 | 108 |
109 ObserverAllocation ZeroRateAllocation() EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); | 109 ObserverAllocation ZeroRateAllocation() EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); |
110 ObserverAllocation LowRateAllocation(uint32_t bitrate) | 110 ObserverAllocation LowRateAllocation(uint32_t bitrate) |
111 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); | 111 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); |
112 | 112 |
113 rtc::CriticalSection crit_sect_; | 113 rtc::CriticalSection crit_sect_; |
114 // Stored in a list to keep track of the insertion order. | 114 // Stored in a list to keep track of the insertion order. |
115 ObserverConfigList bitrate_observer_configs_; | 115 ObserverConfigList bitrate_observer_configs_ GUARDED_BY(crit_sect_); |
116 bool enforce_min_bitrate_ GUARDED_BY(crit_sect_); | 116 bool enforce_min_bitrate_ GUARDED_BY(crit_sect_); |
117 uint32_t last_bitrate_bps_ GUARDED_BY(crit_sect_); | 117 uint32_t last_bitrate_bps_ GUARDED_BY(crit_sect_); |
118 uint32_t last_non_zero_bitrate_bps_ GUARDED_BY(crit_sect_); | 118 uint32_t last_non_zero_bitrate_bps_ GUARDED_BY(crit_sect_); |
119 uint8_t last_fraction_loss_ GUARDED_BY(crit_sect_); | 119 uint8_t last_fraction_loss_ GUARDED_BY(crit_sect_); |
120 int64_t last_rtt_ GUARDED_BY(crit_sect_); | 120 int64_t last_rtt_ GUARDED_BY(crit_sect_); |
121 }; | 121 }; |
122 } // namespace webrtc | 122 } // namespace webrtc |
123 #endif // WEBRTC_CALL_BITRATE_ALLOCATOR_H_ | 123 #endif // WEBRTC_CALL_BITRATE_ALLOCATOR_H_ |
OLD | NEW |