Index: webrtc/api/peerconnectioninterface.h |
diff --git a/webrtc/api/peerconnectioninterface.h b/webrtc/api/peerconnectioninterface.h |
index 08a131920e3be649746ebbc083cdf8b4f64d7a69..c882f91e7d096c88d7dda6e92219a815a1d15d77 100644 |
--- a/webrtc/api/peerconnectioninterface.h |
+++ b/webrtc/api/peerconnectioninterface.h |
@@ -223,6 +223,33 @@ class PeerConnectionInterface : public rtc::RefCountInterface { |
// TODO(hbos): Change into class with private data and public getters. |
struct RTCConfiguration { |
+ // We need getter and setter methods for the flags which are used |
+ // by applications, chrome in particular. |
hbos_google
2016/03/31 08:10:21
super-nit: chrome -> Chrome.
Also, this comment ma
|
+ |
+ bool dscp() { return enable_dscp.value_or(false); } |
+ void set_dscp(bool enable) { enable_dscp = rtc::Optional<bool>(enable); } |
+ |
+ // TODO(nisse): The corresponding flag in MediaConfig and |
+ // elsewhere should be renamed enable_cpu_adaptation. |
+ bool cpu_adaptation() { return cpu_overuse_detection.value_or(true); } |
+ void set_cpu_adaptation(bool enable) { |
+ cpu_overuse_detection = rtc::Optional<bool>(enable); |
+ } |
+ |
+ // TODO(nisse): Properly no getter method, since it collides with |
+ // the flag itself. Add when the flag is moved to MediaConfig. |
+ void set_suspend_below_min_bitrate(bool enable) { |
+ suspend_below_min_bitrate = rtc::Optional<bool>(enable); |
+ } |
+ |
+ // TODO(nisse): The negation in the corresponding MediaConfig |
+ // attribute is inconsistent, and it should be renamed at some |
+ // point. |
+ bool prerenderer_smoothing() { return !disable_prerenderer_smoothing; } |
+ void set_prerenderer_smoothing(bool enable) { |
+ disable_prerenderer_smoothing = !enable; |
+ } |
+ |
static const int kUndefined = -1; |
// Default maximum number of packets in the audio jitter buffer. |
static const int kAudioJitterBufferMaxPackets = 50; |