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

Side by Side Diff: webrtc/voice_engine/channel.cc

Issue 2997883002: Video/Screenshare loopback tool.
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/video/vs_loopback.cc ('k') | no next file » | 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 }; 179 };
180 180
181 void LogProbeResultFailure(int id, 181 void LogProbeResultFailure(int id,
182 ProbeFailureReason failure_reason) override { 182 ProbeFailureReason failure_reason) override {
183 rtc::CritScope lock(&crit_); 183 rtc::CritScope lock(&crit_);
184 if (event_log_) { 184 if (event_log_) {
185 event_log_->LogProbeResultFailure(id, failure_reason); 185 event_log_->LogProbeResultFailure(id, failure_reason);
186 } 186 }
187 }; 187 };
188 188
189 void LogAckedBitrate(uint32_t bitrate_bps) override {
190 rtc::CritScope lock(&crit_);
191 if (event_log_) {
192 event_log_->LogAckedBitrate(bitrate_bps);
193 }
194 };
195
196 void LogAlrState(bool in_alr, uint32_t usage_bps) override {
197 rtc::CritScope lock(&crit_);
198 if (event_log_) {
199 event_log_->LogAlrState(in_alr, usage_bps);
200 }
201 };
202
203 void LogPacketQueueTime(uint32_t ssrc, int64_t time_ms) override {
204 rtc::CritScope lock(&crit_);
205 if (event_log_) {
206 event_log_->LogPacketQueueTime(ssrc, time_ms);
207 }
208 };
209
189 void SetEventLog(RtcEventLog* event_log) { 210 void SetEventLog(RtcEventLog* event_log) {
190 rtc::CritScope lock(&crit_); 211 rtc::CritScope lock(&crit_);
191 event_log_ = event_log; 212 event_log_ = event_log;
192 } 213 }
193 214
194 private: 215 private:
195 rtc::CriticalSection crit_; 216 rtc::CriticalSection crit_;
196 RtcEventLog* event_log_ GUARDED_BY(crit_); 217 RtcEventLog* event_log_ GUARDED_BY(crit_);
197 RTC_DISALLOW_COPY_AND_ASSIGN(RtcEventLogProxy); 218 RTC_DISALLOW_COPY_AND_ASSIGN(RtcEventLogProxy);
198 }; 219 };
(...skipping 2966 matching lines...) Expand 10 before | Expand all | Expand 10 after
3165 int64_t min_rtt = 0; 3186 int64_t min_rtt = 0;
3166 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != 3187 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) !=
3167 0) { 3188 0) {
3168 return 0; 3189 return 0;
3169 } 3190 }
3170 return rtt; 3191 return rtt;
3171 } 3192 }
3172 3193
3173 } // namespace voe 3194 } // namespace voe
3174 } // namespace webrtc 3195 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/vs_loopback.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698