Chromium Code Reviews| 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; |