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

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

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! Created 5 years, 1 month 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
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
11 #include "webrtc/modules/pacing/include/paced_sender.h" 11 #include "webrtc/modules/pacing/include/paced_sender.h"
12 12
13 #include <assert.h> 13 #include <assert.h>
14 14
15 #include <map> 15 #include <map>
16 #include <queue> 16 #include <queue>
17 #include <set> 17 #include <set>
18 18
19 #include "webrtc/modules/interface/module_common_types.h" 19 #include "webrtc/modules/interface/module_common_types.h"
20 #include "webrtc/modules/pacing/bitrate_prober.h" 20 #include "webrtc/modules/pacing/bitrate_prober.h"
21 #include "webrtc/system_wrappers/interface/clock.h" 21 #include "webrtc/system_wrappers/include/clock.h"
22 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" 22 #include "webrtc/system_wrappers/include/critical_section_wrapper.h"
23 #include "webrtc/system_wrappers/interface/field_trial.h" 23 #include "webrtc/system_wrappers/include/field_trial.h"
24 #include "webrtc/system_wrappers/interface/logging.h" 24 #include "webrtc/system_wrappers/include/logging.h"
25 25
26 namespace { 26 namespace {
27 // Time limit in milliseconds between packet bursts. 27 // Time limit in milliseconds between packet bursts.
28 const int64_t kMinPacketLimitMs = 5; 28 const int64_t kMinPacketLimitMs = 5;
29 29
30 // Upper cap on process interval, in case process has not been called in a long 30 // Upper cap on process interval, in case process has not been called in a long
31 // time. 31 // time.
32 const int64_t kMaxIntervalTimeMs = 30; 32 const int64_t kMaxIntervalTimeMs = 30;
33 33
34 } // namespace 34 } // namespace
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 media_budget_->UseBudget(bytes_sent); 389 media_budget_->UseBudget(bytes_sent);
390 padding_budget_->UseBudget(bytes_sent); 390 padding_budget_->UseBudget(bytes_sent);
391 } 391 }
392 } 392 }
393 393
394 void PacedSender::UpdateBytesPerInterval(int64_t delta_time_ms) { 394 void PacedSender::UpdateBytesPerInterval(int64_t delta_time_ms) {
395 media_budget_->IncreaseBudget(delta_time_ms); 395 media_budget_->IncreaseBudget(delta_time_ms);
396 padding_budget_->IncreaseBudget(delta_time_ms); 396 padding_budget_->IncreaseBudget(delta_time_ms);
397 } 397 }
398 } // namespace webrtc 398 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/pacing/include/mock/mock_paced_sender.h ('k') | webrtc/modules/pacing/paced_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698