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

Unified Diff: webrtc/api/videosource.h

Issue 1758223002: Change webrtc::VideoSourceInterface to inherit rtc::VideoSourceInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 | « webrtc/api/rtpsenderreceiver_unittest.cc ('k') | webrtc/api/videosource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/videosource.h
diff --git a/webrtc/api/videosource.h b/webrtc/api/videosource.h
index 7ff479a45fa2a20956fdd8035f39398cf32ca2f4..634c47ae371268e3ccf04dea21c2ccb0b2d4145c 100644
--- a/webrtc/api/videosource.h
+++ b/webrtc/api/videosource.h
@@ -30,13 +30,6 @@
// The state is set depending on the result of starting the capturer.
// If the constraint can't be met or the capturer fails to start, the state
// transition to kEnded, otherwise it transitions to kLive.
-
-namespace cricket {
-
-class ChannelManager;
-
-} // namespace cricket
-
namespace webrtc {
class MediaConstraintsInterface;
@@ -66,10 +59,9 @@ class VideoSource : public Notifier<VideoSourceInterface>,
void Stop() override;
void Restart() override;
- // |output| will be served video frames as long as the underlying capturer
- // is running video frames.
- virtual void AddSink(rtc::VideoSinkInterface<cricket::VideoFrame>* output);
- virtual void RemoveSink(rtc::VideoSinkInterface<cricket::VideoFrame>* output);
+ void AddOrUpdateSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink,
+ const rtc::VideoSinkWants& wants) override;
+ void RemoveSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink) override;
protected:
VideoSource(rtc::Thread* worker_thread,
« no previous file with comments | « webrtc/api/rtpsenderreceiver_unittest.cc ('k') | webrtc/api/videosource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698