diff options
Diffstat (limited to 'media/webrtc/fakewebrtcvideoengine.h')
-rw-r--r-- | media/webrtc/fakewebrtcvideoengine.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/media/webrtc/fakewebrtcvideoengine.h b/media/webrtc/fakewebrtcvideoengine.h index 1d4f19a..4096ff1 100644 --- a/media/webrtc/fakewebrtcvideoengine.h +++ b/media/webrtc/fakewebrtcvideoengine.h @@ -300,6 +300,9 @@ class FakeWebRtcVideoEngine overuse_observer_(NULL) { ssrcs_[0] = 0; // default ssrc. memset(&send_codec, 0, sizeof(send_codec)); +#ifdef USE_WEBRTC_DEV_BRANCH + memset(&overuse_options_, 0, sizeof(overuse_options_)); +#endif } int capture_id_; int original_channel_id_; @@ -338,6 +341,9 @@ class FakeWebRtcVideoEngine unsigned int receive_bandwidth_; bool suspend_below_min_bitrate_; webrtc::CpuOveruseObserver* overuse_observer_; +#ifdef USE_WEBRTC_DEV_BRANCH + webrtc::CpuOveruseOptions overuse_options_; +#endif }; class Capturer : public webrtc::ViEExternalCapture { public: @@ -539,6 +545,12 @@ class FakeWebRtcVideoEngine WEBRTC_ASSERT_CHANNEL(channel); return channels_.find(channel)->second->overuse_observer_; } +#ifdef USE_WEBRTC_DEV_BRANCH + webrtc::CpuOveruseOptions GetCpuOveruseOptions(int channel) const { + WEBRTC_ASSERT_CHANNEL(channel); + return channels_.find(channel)->second->overuse_options_; + } +#endif int GetRtxSsrc(int channel, int simulcast_idx) const { WEBRTC_ASSERT_CHANNEL(channel); if (channels_.find(channel)->second->rtx_ssrcs_.find(simulcast_idx) == @@ -666,6 +678,14 @@ class FakeWebRtcVideoEngine return 0; } WEBRTC_STUB(CpuOveruseMeasures, (int, int*, int*, int*, int*)); +#ifdef USE_WEBRTC_DEV_BRANCH + WEBRTC_FUNC(SetCpuOveruseOptions, + (int channel, const webrtc::CpuOveruseOptions& options)) { + WEBRTC_CHECK_CHANNEL(channel); + channels_[channel]->overuse_options_ = options; + return 0; + } +#endif WEBRTC_STUB(ConnectAudioChannel, (const int, const int)); WEBRTC_STUB(DisconnectAudioChannel, (const int)); WEBRTC_FUNC(StartSend, (const int channel)) { |