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

Side by Side Diff: webrtc/api/videotrack.h

Issue 1765423005: Change VideoRtpReceiver to create remote VideoTrack and VideoTrackSource. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed up the comments. Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « webrtc/api/videocapturertracksource_unittest.cc ('k') | webrtc/api/videotrack.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 15 matching lines...) Expand all
26 const std::string& label, 26 const std::string& label,
27 VideoTrackSourceInterface* source); 27 VideoTrackSourceInterface* source);
28 28
29 void AddOrUpdateSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink, 29 void AddOrUpdateSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink,
30 const rtc::VideoSinkWants& wants) override; 30 const rtc::VideoSinkWants& wants) override;
31 void RemoveSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink) override; 31 void RemoveSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink) override;
32 32
33 virtual VideoTrackSourceInterface* GetSource() const { 33 virtual VideoTrackSourceInterface* GetSource() const {
34 return video_source_.get(); 34 return video_source_.get();
35 } 35 }
36 rtc::VideoSinkInterface<cricket::VideoFrame>* GetSink() override;
37 virtual bool set_enabled(bool enable); 36 virtual bool set_enabled(bool enable);
38 virtual std::string kind() const; 37 virtual std::string kind() const;
39 38
40 protected: 39 protected:
41 VideoTrack(const std::string& id, VideoTrackSourceInterface* video_source); 40 VideoTrack(const std::string& id, VideoTrackSourceInterface* video_source);
42 ~VideoTrack(); 41 ~VideoTrack();
43 42
44 private: 43 private:
45 VideoTrackRenderers renderers_; 44 VideoTrackRenderers renderers_;
46 rtc::scoped_refptr<VideoTrackSourceInterface> video_source_; 45 rtc::scoped_refptr<VideoTrackSourceInterface> video_source_;
47 }; 46 };
48 47
49 } // namespace webrtc 48 } // namespace webrtc
50 49
51 #endif // WEBRTC_API_VIDEOTRACK_H_ 50 #endif // WEBRTC_API_VIDEOTRACK_H_
OLDNEW
« no previous file with comments | « webrtc/api/videocapturertracksource_unittest.cc ('k') | webrtc/api/videotrack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698