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

Unified Diff: webrtc/media/base/videosinkinterface.h

Issue 1594973006: New rtc::VideoSinkInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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
« no previous file with comments | « talk/app/webrtc/mediastreaminterface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/videosinkinterface.h
diff --git a/webrtc/sound/linuxsoundsystem.cc b/webrtc/media/base/videosinkinterface.h
similarity index 50%
copy from webrtc/sound/linuxsoundsystem.cc
copy to webrtc/media/base/videosinkinterface.h
index c420ab57764e9b9b446057da5de4e54cf70f1431..9b8ba318623e6b43b2db726f7f84f099f956de34 100644
--- a/webrtc/sound/linuxsoundsystem.cc
+++ b/webrtc/media/base/videosinkinterface.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2004 The WebRTC Project Authors. All rights reserved.
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
@@ -8,18 +8,20 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "webrtc/sound/linuxsoundsystem.h"
-
-#include "webrtc/sound/alsasoundsystem.h"
-#include "webrtc/sound/pulseaudiosoundsystem.h"
+#ifndef WEBRTC_MEDIA_BASE_VIDEOSINKINTERFACE_H_
+#define WEBRTC_MEDIA_BASE_VIDEOSINKINTERFACE_H_
namespace rtc {
-const SoundSystemCreator kLinuxSoundSystemCreators[] = {
-#ifdef HAVE_LIBPULSE
- &PulseAudioSoundSystem::Create,
-#endif
- &AlsaSoundSystem::Create,
+template <typename VideoFrameT>
pbos-webrtc 2016/01/19 13:58:24 Do we need this to be a template? We'll just use t
nisse-webrtc 2016/01/19 14:12:18 I think some of the sink-like interfaces we want t
+class VideoSinkInterface {
+ public:
+ virtual void OnFrame(const VideoFrameT& frame) = 0;
+
+ protected:
+ ~VideoSinkInterface() {}
};
} // namespace rtc
+
+#endif // WEBRTC_MEDIA_BASE_VIDEOSINKINTERFACE_H_
« no previous file with comments | « talk/app/webrtc/mediastreaminterface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698