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

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

Issue 2326843003: Remove RTC_LOGGED_* macro. (Closed)
Patch Set: rebase Created 4 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 | « no previous file | webrtc/call/call.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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 last_non_zero_bitrate_bps_(kDefaultBitrateBps), 52 last_non_zero_bitrate_bps_(kDefaultBitrateBps),
53 last_fraction_loss_(0), 53 last_fraction_loss_(0),
54 last_rtt_(0), 54 last_rtt_(0),
55 num_pause_events_(0), 55 num_pause_events_(0),
56 clock_(Clock::GetRealTimeClock()), 56 clock_(Clock::GetRealTimeClock()),
57 last_bwe_log_time_(0) { 57 last_bwe_log_time_(0) {
58 sequenced_checker_.Detach(); 58 sequenced_checker_.Detach();
59 } 59 }
60 60
61 BitrateAllocator::~BitrateAllocator() { 61 BitrateAllocator::~BitrateAllocator() {
62 RTC_LOGGED_HISTOGRAM_COUNTS_100("WebRTC.Call.NumberOfPauseEvents", 62 RTC_HISTOGRAM_COUNTS_100("WebRTC.Call.NumberOfPauseEvents",
63 num_pause_events_); 63 num_pause_events_);
64 } 64 }
65 65
66 void BitrateAllocator::OnNetworkChanged(uint32_t target_bitrate_bps, 66 void BitrateAllocator::OnNetworkChanged(uint32_t target_bitrate_bps,
67 uint8_t fraction_loss, 67 uint8_t fraction_loss,
68 int64_t rtt) { 68 int64_t rtt) {
69 RTC_DCHECK_CALLED_SEQUENTIALLY(&sequenced_checker_); 69 RTC_DCHECK_CALLED_SEQUENTIALLY(&sequenced_checker_);
70 last_bitrate_bps_ = target_bitrate_bps; 70 last_bitrate_bps_ = target_bitrate_bps;
71 last_non_zero_bitrate_bps_ = 71 last_non_zero_bitrate_bps_ =
72 target_bitrate_bps > 0 ? target_bitrate_bps : last_non_zero_bitrate_bps_; 72 target_bitrate_bps > 0 ? target_bitrate_bps : last_non_zero_bitrate_bps_;
73 last_fraction_loss_ = fraction_loss; 73 last_fraction_loss_ = fraction_loss;
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 (bitrate - sum_min_bitrates) / 410 (bitrate - sum_min_bitrates) /
411 static_cast<uint32_t>(bitrate_observer_configs_.size()); 411 static_cast<uint32_t>(bitrate_observer_configs_.size());
412 for (const auto& observer_config : bitrate_observer_configs_) { 412 for (const auto& observer_config : bitrate_observer_configs_) {
413 if (observer_config.min_bitrate_bps + extra_bitrate_per_observer < 413 if (observer_config.min_bitrate_bps + extra_bitrate_per_observer <
414 MinBitrateWithHysteresis(observer_config)) 414 MinBitrateWithHysteresis(observer_config))
415 return false; 415 return false;
416 } 416 }
417 return true; 417 return true;
418 } 418 }
419 } // namespace webrtc 419 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/call/call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698