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

Side by Side Diff: webrtc/modules/audio_coding/acm2/audio_coding_module_impl.cc

Issue 1530913002: Rename RTC_HISTOGRAM_* macros to RTC_HISTOGRAM_*_SPARSE_* to indicate that these are for infrequent (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years 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/call/call.cc ('k') | webrtc/modules/audio_coding/neteq/statistics_calculator.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) 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 info.encoded_timestamp - info.redundant[i].encoded_timestamp); 90 info.encoded_timestamp - info.redundant[i].encoded_timestamp);
91 frag->fragmentationPlType[i] = info.redundant[i].payload_type; 91 frag->fragmentationPlType[i] = info.redundant[i].payload_type;
92 } 92 }
93 } 93 }
94 } // namespace 94 } // namespace
95 95
96 void AudioCodingModuleImpl::ChangeLogger::MaybeLog(int value) { 96 void AudioCodingModuleImpl::ChangeLogger::MaybeLog(int value) {
97 if (value != last_value_ || first_time_) { 97 if (value != last_value_ || first_time_) {
98 first_time_ = false; 98 first_time_ = false;
99 last_value_ = value; 99 last_value_ = value;
100 RTC_HISTOGRAM_COUNTS_100(histogram_name_, value); 100 RTC_HISTOGRAM_COUNTS_SPARSE_100(histogram_name_, value);
101 } 101 }
102 } 102 }
103 103
104 AudioCodingModuleImpl::AudioCodingModuleImpl( 104 AudioCodingModuleImpl::AudioCodingModuleImpl(
105 const AudioCodingModule::Config& config) 105 const AudioCodingModule::Config& config)
106 : acm_crit_sect_(CriticalSectionWrapper::CreateCriticalSection()), 106 : acm_crit_sect_(CriticalSectionWrapper::CreateCriticalSection()),
107 id_(config.id), 107 id_(config.id),
108 expected_codec_ts_(0xD87F3F9F), 108 expected_codec_ts_(0xD87F3F9F),
109 expected_in_ts_(0xD87F3F9F), 109 expected_in_ts_(0xD87F3F9F),
110 receiver_(config), 110 receiver_(config),
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 return receiver_.LeastRequiredDelayMs(); 778 return receiver_.LeastRequiredDelayMs();
779 } 779 }
780 780
781 void AudioCodingModuleImpl::GetDecodingCallStatistics( 781 void AudioCodingModuleImpl::GetDecodingCallStatistics(
782 AudioDecodingCallStats* call_stats) const { 782 AudioDecodingCallStats* call_stats) const {
783 receiver_.GetDecodingCallStatistics(call_stats); 783 receiver_.GetDecodingCallStatistics(call_stats);
784 } 784 }
785 785
786 } // namespace acm2 786 } // namespace acm2
787 } // namespace webrtc 787 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/modules/audio_coding/neteq/statistics_calculator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698