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

Unified Diff: talk/media/base/capturerenderadapter.h

Issue 1655793003: Make cricket::VideoCapturer implement VideoSourceInterface (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed Android 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/media/base/capturerenderadapter.h
diff --git a/talk/media/base/capturerenderadapter.h b/talk/media/base/capturerenderadapter.h
index f972c983c5d85b3862ad1e7dd82e6cc01b56a048..ed74294e2af1cf188e58488c814ee651b58fb718 100644
--- a/talk/media/base/capturerenderadapter.h
+++ b/talk/media/base/capturerenderadapter.h
@@ -38,7 +38,6 @@
#include "talk/media/base/videocapturer.h"
#include "webrtc/base/criticalsection.h"
-#include "webrtc/base/sigslot.h"
#include "webrtc/media/base/videosinkinterface.h"
namespace cricket {
@@ -46,7 +45,7 @@ namespace cricket {
class VideoCapturer;
class VideoProcessor;
-class CaptureRenderAdapter : public sigslot::has_slots<> {
+class CaptureRenderAdapter : public rtc::VideoSinkInterface<VideoFrame> {
nisse-webrtc 2016/02/03 09:16:34 After these changes, it looks like this class is
pthatcher1 2016/02/03 15:38:35 I'd like it if we can just remove this class altog
perkj_webrtc 2016/02/08 14:32:00 I think this can be removed later yes. But since t
public:
static CaptureRenderAdapter* Create(VideoCapturer* video_capturer);
~CaptureRenderAdapter();
@@ -55,13 +54,13 @@ class CaptureRenderAdapter : public sigslot::has_slots<> {
void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink);
VideoCapturer* video_capturer() { return video_capturer_; }
- private:
+ private:
explicit CaptureRenderAdapter(VideoCapturer* video_capturer);
void Init();
// Callback for frames received from the capturer.
- void OnVideoFrame(VideoCapturer* capturer, const VideoFrame* video_frame);
+ void OnFrame(const VideoFrame& frame) override;
// Just pointers since ownership is not handed over to this class.
std::vector<rtc::VideoSinkInterface<VideoFrame>*> sinks_;

Powered by Google App Engine
This is Rietveld 408576698