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

Unified Diff: webrtc/call/bitrate_allocator.h

Issue 2954903002: Media track ID visibility at BWE level
Patch Set: Media track ID visibility at BWE level Created 3 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/call/bitrate_allocator.h
diff --git a/webrtc/call/bitrate_allocator.h b/webrtc/call/bitrate_allocator.h
index e92eac90e63b0db8e380b47c8168537f9c322d29..9348efa74305d3ff06a527686413e79b314311b2 100644
--- a/webrtc/call/bitrate_allocator.h
+++ b/webrtc/call/bitrate_allocator.h
@@ -16,6 +16,7 @@
#include <map>
#include <utility>
#include <vector>
+#include <string>
#include "webrtc/base/sequenced_task_checker.h"
@@ -82,7 +83,8 @@ class BitrateAllocator {
uint32_t min_bitrate_bps,
uint32_t max_bitrate_bps,
uint32_t pad_up_bitrate_bps,
- bool enforce_min_bitrate);
+ bool enforce_min_bitrate,
+ std::string track_id);
// Removes a previously added observer, but will not trigger a new bitrate
// allocation.
@@ -99,14 +101,16 @@ class BitrateAllocator {
uint32_t min_bitrate_bps,
uint32_t max_bitrate_bps,
uint32_t pad_up_bitrate_bps,
- bool enforce_min_bitrate)
+ bool enforce_min_bitrate,
+ std::string track_id)
: observer(observer),
min_bitrate_bps(min_bitrate_bps),
max_bitrate_bps(max_bitrate_bps),
pad_up_bitrate_bps(pad_up_bitrate_bps),
enforce_min_bitrate(enforce_min_bitrate),
allocated_bitrate_bps(-1),
- media_ratio(1.0) {}
+ media_ratio(1.0),
+ track_id(track_id) {}
BitrateAllocatorObserver* observer;
uint32_t min_bitrate_bps;
@@ -115,6 +119,7 @@ class BitrateAllocator {
bool enforce_min_bitrate;
int64_t allocated_bitrate_bps;
double media_ratio; // Part of the total bitrate used for media [0.0, 1.0].
+ std::string track_id;
nisse-webrtc 2017/09/18 08:44:28 Can it be const? (I guess all other members are ex
alexnarest 2017/09/29 12:13:57 Other members such as observer, min/max bitrate, e
};
// Calculates the minimum requested send bitrate and max padding bitrate and

Powered by Google App Engine
This is Rietveld 408576698