diff options
author | pbos@webrtc.org <pbos@webrtc.org> | 2014-10-03 11:25:45 +0000 |
---|---|---|
committer | pbos@webrtc.org <pbos@webrtc.org> | 2014-10-03 11:25:45 +0000 |
commit | 42684be21b255e2b07eb154e6a2807fa2226167e (patch) | |
tree | 35576c610375ded7fc54ae444ca23820b7fa1687 /webrtc/call.h | |
parent | 31b75eae05450a82f1c80985ed78253d1f9a9d08 (diff) | |
download | webrtc-42684be21b255e2b07eb154e6a2807fa2226167e.tar.gz |
Wire up CPU adaptation in WebRtcVideoEngine2.
Includes clean-up work to be able to use the webrtc::Call::Config that's
set up. This introduced a CallFactory to spawn a FakeCall with the
config used and allowed removal of FakeWebRtcVideoChannel2.
BUG=1788
R=mflodman@webrtc.org, pthatcher@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/24779004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7370 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/call.h')
-rw-r--r-- | webrtc/call.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/webrtc/call.h b/webrtc/call.h index bb1dca1446..43ce4c182e 100644 --- a/webrtc/call.h +++ b/webrtc/call.h @@ -39,16 +39,16 @@ class PacketReceiver { }; // Callback interface for reporting when a system overuse is detected. -// The detection is based on the jitter of incoming captured frames. -class OveruseCallback { +class LoadObserver { public: - // Called as soon as an overuse is detected. - virtual void OnOveruse() = 0; - // Called periodically when the system is not overused any longer. - virtual void OnNormalUse() = 0; + enum Load { kOveruse, kUnderuse }; + + // Triggered when overuse is detected or when we believe the system can take + // more load. + virtual void OnLoadUpdate(Load load) = 0; protected: - virtual ~OveruseCallback() {} + virtual ~LoadObserver() {} }; // A Call instance can contain several send and/or receive streams. All streams @@ -77,7 +77,7 @@ class Call { // Callback for overuse and normal usage based on the jitter of incoming // captured frames. 'NULL' disables the callback. - OveruseCallback* overuse_callback; + LoadObserver* overuse_callback; // Start bitrate used before a valid bitrate estimate is calculated. '-1' // lets the call decide start bitrate. |