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

Unified Diff: talk/session/media/channelmanager.h

Issue 1594973006: New rtc::VideoSinkInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Use rtc::VideoSinkInterface on the call chain VideoSource --> CaptureRenderAdapter Created 4 years, 11 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
Index: talk/session/media/channelmanager.h
diff --git a/talk/session/media/channelmanager.h b/talk/session/media/channelmanager.h
index f69bf9a2935c2a25bca79a555e2e3e49a4118031..bbe517dc8625d9ecb40e1ce54ebbe62ad5d6142a 100644
--- a/talk/session/media/channelmanager.h
+++ b/talk/session/media/channelmanager.h
@@ -156,8 +156,12 @@ class ChannelManager : public rtc::MessageHandler,
const VideoFormat& desired_format,
CaptureManager::RestartOptions options);
- bool AddVideoRenderer(VideoCapturer* capturer, VideoRenderer* renderer);
- bool RemoveVideoRenderer(VideoCapturer* capturer, VideoRenderer* renderer);
+ // TODO(nisse): Return values are mostly useless. Currently, these
+ // methods tolerate nullptr inputs, probably not needed.
+ virtual bool AddVideoSink(VideoCapturer* video_capturer,
+ rtc::VideoSinkInterface<VideoFrame>* sink);
+ virtual bool RemoveVideoSink(VideoCapturer* video_capturer,
+ rtc::VideoSinkInterface<VideoFrame>* sink);
bool IsScreencastRunning() const;
// The operations below occur on the main thread.

Powered by Google App Engine
This is Rietveld 408576698