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

Side by Side Diff: webrtc/call/bitrate_allocator.h

Issue 3012853002: Update thread annotiation macros to use RTC_ prefix (Closed)
Patch Set: Rebase Created 3 years, 3 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
« no previous file with comments | « webrtc/audio/audio_state.h ('k') | webrtc/call/bitrate_estimator_tests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // the distribution or not. The allowed max bitrate is |max_multiplier| x 146 // the distribution or not. The allowed max bitrate is |max_multiplier| x
147 // observer max bitrate. 147 // observer max bitrate.
148 void DistributeBitrateEvenly(uint32_t bitrate, 148 void DistributeBitrateEvenly(uint32_t bitrate,
149 bool include_zero_allocations, 149 bool include_zero_allocations,
150 int max_multiplier, 150 int max_multiplier,
151 ObserverAllocation* allocation); 151 ObserverAllocation* allocation);
152 bool EnoughBitrateForAllObservers(uint32_t bitrate, 152 bool EnoughBitrateForAllObservers(uint32_t bitrate,
153 uint32_t sum_min_bitrates); 153 uint32_t sum_min_bitrates);
154 154
155 rtc::SequencedTaskChecker sequenced_checker_; 155 rtc::SequencedTaskChecker sequenced_checker_;
156 LimitObserver* const limit_observer_ GUARDED_BY(&sequenced_checker_); 156 LimitObserver* const limit_observer_ RTC_GUARDED_BY(&sequenced_checker_);
157 // Stored in a list to keep track of the insertion order. 157 // Stored in a list to keep track of the insertion order.
158 ObserverConfigs bitrate_observer_configs_ GUARDED_BY(&sequenced_checker_); 158 ObserverConfigs bitrate_observer_configs_ RTC_GUARDED_BY(&sequenced_checker_);
159 uint32_t last_bitrate_bps_ GUARDED_BY(&sequenced_checker_); 159 uint32_t last_bitrate_bps_ RTC_GUARDED_BY(&sequenced_checker_);
160 uint32_t last_non_zero_bitrate_bps_ GUARDED_BY(&sequenced_checker_); 160 uint32_t last_non_zero_bitrate_bps_ RTC_GUARDED_BY(&sequenced_checker_);
161 uint8_t last_fraction_loss_ GUARDED_BY(&sequenced_checker_); 161 uint8_t last_fraction_loss_ RTC_GUARDED_BY(&sequenced_checker_);
162 int64_t last_rtt_ GUARDED_BY(&sequenced_checker_); 162 int64_t last_rtt_ RTC_GUARDED_BY(&sequenced_checker_);
163 int64_t last_bwe_period_ms_ GUARDED_BY(&sequenced_checker_); 163 int64_t last_bwe_period_ms_ RTC_GUARDED_BY(&sequenced_checker_);
164 // Number of mute events based on too low BWE, not network up/down. 164 // Number of mute events based on too low BWE, not network up/down.
165 int num_pause_events_ GUARDED_BY(&sequenced_checker_); 165 int num_pause_events_ RTC_GUARDED_BY(&sequenced_checker_);
166 Clock* const clock_ GUARDED_BY(&sequenced_checker_); 166 Clock* const clock_ RTC_GUARDED_BY(&sequenced_checker_);
167 int64_t last_bwe_log_time_ GUARDED_BY(&sequenced_checker_); 167 int64_t last_bwe_log_time_ RTC_GUARDED_BY(&sequenced_checker_);
168 uint32_t total_requested_padding_bitrate_ GUARDED_BY(&sequenced_checker_); 168 uint32_t total_requested_padding_bitrate_ RTC_GUARDED_BY(&sequenced_checker_);
169 uint32_t total_requested_min_bitrate_ GUARDED_BY(&sequenced_checker_); 169 uint32_t total_requested_min_bitrate_ RTC_GUARDED_BY(&sequenced_checker_);
170 }; 170 };
171 } // namespace webrtc 171 } // namespace webrtc
172 #endif // WEBRTC_CALL_BITRATE_ALLOCATOR_H_ 172 #endif // WEBRTC_CALL_BITRATE_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « webrtc/audio/audio_state.h ('k') | webrtc/call/bitrate_estimator_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698