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

Unified Diff: webrtc/api/peerconnectioninterface.h

Issue 1836083003: Add RTCConfiguration getter and setter methods. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/peerconnectioninterface.h
diff --git a/webrtc/api/peerconnectioninterface.h b/webrtc/api/peerconnectioninterface.h
index 08a131920e3be649746ebbc083cdf8b4f64d7a69..b8984cd6ed8d560f4bb0eac1892335fe2bef3564 100644
--- a/webrtc/api/peerconnectioninterface.h
+++ b/webrtc/api/peerconnectioninterface.h
@@ -223,6 +223,32 @@ class PeerConnectionInterface : public rtc::RefCountInterface {
// TODO(hbos): Change into class with private data and public getters.
struct RTCConfiguration {
+ // Getter and setter methods for the flags which are used by
+ // applications, chrome in particular.
+ bool get_enable_dscp() { return enable_dscp.value_or(false); }
+ void set_enable_dscp(bool flag) { enable_dscp = rtc::Optional<bool>(flag); }
+
+ bool get_enable_cpu_overuse_detection() {
+ return cpu_overuse_detection.value_or(true);
perkj_webrtc 2016/03/29 15:25:11 Use in this cl? ie- Stop using the to be private s
nisse-webrtc 2016/03/30 08:50:24 (Some important words seem to be missing). My inte
+ }
+ void set_enable_cpu_overuse_detection(bool flag) {
+ cpu_overuse_detection = rtc::Optional<bool>(flag);
+ }
+
+ bool get_enable_suspend_below_min_bitrate() {
+ return suspend_below_min_bitrate.value_or(false);
perkj_webrtc 2016/03/29 15:25:12 dito
+ }
+ void set_enable_suspend_below_min_bitrate(bool flag) {
+ suspend_below_min_bitrate = rtc::Optional<bool>(flag);
+ }
+
+ bool get_enable_prerenderer_smoothing(bool flag) {
perkj_webrtc 2016/03/29 15:25:11 |flag| is unused
+ return !disable_prerenderer_smoothing;
+ }
+ void set_enable_prerenderer_smoothing(bool flag) {
+ disable_prerenderer_smoothing = !flag;
+ }
+
static const int kUndefined = -1;
// Default maximum number of packets in the audio jitter buffer.
static const int kAudioJitterBufferMaxPackets = 50;
« 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