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

Side by Side Diff: webrtc/video_engine/vie_channel_group.cc

Issue 1279543005: Add average rtt to CallStatsObserver and an average rtt histogram. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added guards Created 5 years, 4 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_engine/vie_channel.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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 int32_t Process() override { 64 int32_t Process() override {
65 CriticalSectionScoped cs(crit_sect_.get()); 65 CriticalSectionScoped cs(crit_sect_.get());
66 return rbe_->Process(); 66 return rbe_->Process();
67 } 67 }
68 68
69 int64_t TimeUntilNextProcess() override { 69 int64_t TimeUntilNextProcess() override {
70 CriticalSectionScoped cs(crit_sect_.get()); 70 CriticalSectionScoped cs(crit_sect_.get());
71 return rbe_->TimeUntilNextProcess(); 71 return rbe_->TimeUntilNextProcess();
72 } 72 }
73 73
74 void OnRttUpdate(int64_t rtt) override { 74 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override {
75 CriticalSectionScoped cs(crit_sect_.get()); 75 CriticalSectionScoped cs(crit_sect_.get());
76 rbe_->OnRttUpdate(rtt); 76 rbe_->OnRttUpdate(avg_rtt_ms, max_rtt_ms);
77 } 77 }
78 78
79 void RemoveStream(unsigned int ssrc) override { 79 void RemoveStream(unsigned int ssrc) override {
80 CriticalSectionScoped cs(crit_sect_.get()); 80 CriticalSectionScoped cs(crit_sect_.get());
81 rbe_->RemoveStream(ssrc); 81 rbe_->RemoveStream(ssrc);
82 } 82 }
83 83
84 bool LatestEstimate(std::vector<unsigned int>* ssrcs, 84 bool LatestEstimate(std::vector<unsigned int>* ssrcs,
85 unsigned int* bitrate_bps) const override { 85 unsigned int* bitrate_bps) const override {
86 CriticalSectionScoped cs(crit_sect_.get()); 86 CriticalSectionScoped cs(crit_sect_.get());
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 rtc::CritScope lock(&encoder_map_crit_); 370 rtc::CritScope lock(&encoder_map_crit_);
371 for (const auto& encoder : vie_encoder_map_) 371 for (const auto& encoder : vie_encoder_map_)
372 pad_up_to_bitrate_bps += encoder.second->GetPaddingNeededBps(); 372 pad_up_to_bitrate_bps += encoder.second->GetPaddingNeededBps();
373 } 373 }
374 pacer_->UpdateBitrate( 374 pacer_->UpdateBitrate(
375 target_bitrate_bps / 1000, 375 target_bitrate_bps / 1000,
376 PacedSender::kDefaultPaceMultiplier * target_bitrate_bps / 1000, 376 PacedSender::kDefaultPaceMultiplier * target_bitrate_bps / 1000,
377 pad_up_to_bitrate_bps / 1000); 377 pad_up_to_bitrate_bps / 1000);
378 } 378 }
379 } // namespace webrtc 379 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video_engine/vie_channel.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698