Replace uses of cricket::VideoRenderer by rtc::VideoSinkInterface.
Change argument type for VideoProviderInterface::SetVideoPlayout.
Replace VideoMediaChannel::SetRenderer and VideoChannel::SetRenderer
by SetSink.
Alse deleted unused member variables VideoMediaChannel::renderer_ and
VideoChannel::renderer_.
BUG=webrtc:5426
Review URL: https://codereview.webrtc.org/1668493002
Cr-Commit-Position: refs/heads/master@{#11485}
diff --git a/talk/session/media/channel.h b/talk/session/media/channel.h
index de66e9c..a05828b 100644
--- a/talk/session/media/channel.h
+++ b/talk/session/media/channel.h
@@ -50,6 +50,7 @@
#include "webrtc/base/network.h"
#include "webrtc/base/sigslot.h"
#include "webrtc/base/window.h"
+#include "webrtc/media/base/videosinkinterface.h"
#include "webrtc/p2p/base/transportcontroller.h"
#include "webrtc/p2p/client/socketmonitor.h"
@@ -454,7 +455,7 @@
return static_cast<VideoMediaChannel*>(BaseChannel::media_channel());
}
- bool SetRenderer(uint32_t ssrc, VideoRenderer* renderer);
+ bool SetSink(uint32_t ssrc, rtc::VideoSinkInterface<VideoFrame>* sink);
// TODO(pthatcher): Refactor to use a "capture id" instead of an
// ssrc here as the "key".
@@ -507,7 +508,6 @@
virtual void OnStateChange(VideoCapturer* capturer, CaptureState ev);
bool GetLocalSsrc(const VideoCapturer* capturer, uint32_t* ssrc);
- VideoRenderer* renderer_;
ScreencastMap screencast_capturers_;
rtc::scoped_ptr<VideoMediaMonitor> media_monitor_;