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

Side by Side Diff: webrtc/modules/pacing/paced_sender.cc

Issue 1990883002: Remove unneccessary log in PacedSender. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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 | 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 CriticalSectionScoped cs(critsect_.get()); 275 CriticalSectionScoped cs(critsect_.get());
276 paused_ = false; 276 paused_ = false;
277 } 277 }
278 278
279 void PacedSender::SetProbingEnabled(bool enabled) { 279 void PacedSender::SetProbingEnabled(bool enabled) {
280 RTC_CHECK_EQ(0u, packet_counter_); 280 RTC_CHECK_EQ(0u, packet_counter_);
281 probing_enabled_ = enabled; 281 probing_enabled_ = enabled;
282 } 282 }
283 283
284 void PacedSender::SetEstimatedBitrate(uint32_t bitrate_bps) { 284 void PacedSender::SetEstimatedBitrate(uint32_t bitrate_bps) {
285 LOG(LS_INFO) << "SetNetWorkEstimateTargetBitrate, bitrate " << bitrate_bps;
286
287 CriticalSectionScoped cs(critsect_.get()); 285 CriticalSectionScoped cs(critsect_.get());
288 estimated_bitrate_bps_ = bitrate_bps; 286 estimated_bitrate_bps_ = bitrate_bps;
289 pacing_bitrate_kbps_ = 287 pacing_bitrate_kbps_ =
290 std::max(min_send_bitrate_kbps_, estimated_bitrate_bps_ / 1000) * 288 std::max(min_send_bitrate_kbps_, estimated_bitrate_bps_ / 1000) *
291 kDefaultPaceMultiplier; 289 kDefaultPaceMultiplier;
292 } 290 }
293 291
294 void PacedSender::SetAllocatedSendBitrate(int allocated_bitrate, 292 void PacedSender::SetAllocatedSendBitrate(int allocated_bitrate,
295 int padding_bitrate) { 293 int padding_bitrate) {
296 CriticalSectionScoped cs(critsect_.get()); 294 CriticalSectionScoped cs(critsect_.get());
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 media_budget_->UseBudget(bytes_sent); 464 media_budget_->UseBudget(bytes_sent);
467 padding_budget_->UseBudget(bytes_sent); 465 padding_budget_->UseBudget(bytes_sent);
468 } 466 }
469 } 467 }
470 468
471 void PacedSender::UpdateBytesPerInterval(int64_t delta_time_ms) { 469 void PacedSender::UpdateBytesPerInterval(int64_t delta_time_ms) {
472 media_budget_->IncreaseBudget(delta_time_ms); 470 media_budget_->IncreaseBudget(delta_time_ms);
473 padding_budget_->IncreaseBudget(delta_time_ms); 471 padding_budget_->IncreaseBudget(delta_time_ms);
474 } 472 }
475 } // namespace webrtc 473 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698