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

Side by Side Diff: talk/app/webrtc/videotrack.h

Issue 1664773002: Added VideoTrackInterface::GetSink method, for use by VideoRtpReceiver. Get rid of FrameInput. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Delete FrameInput method and FrameInputWrapper class. Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 29 matching lines...) Expand all
40 class VideoTrack : public MediaStreamTrack<VideoTrackInterface> { 40 class VideoTrack : public MediaStreamTrack<VideoTrackInterface> {
41 public: 41 public:
42 static rtc::scoped_refptr<VideoTrack> Create( 42 static rtc::scoped_refptr<VideoTrack> Create(
43 const std::string& label, VideoSourceInterface* source); 43 const std::string& label, VideoSourceInterface* source);
44 44
45 virtual void AddRenderer(VideoRendererInterface* renderer); 45 virtual void AddRenderer(VideoRendererInterface* renderer);
46 virtual void RemoveRenderer(VideoRendererInterface* renderer); 46 virtual void RemoveRenderer(VideoRendererInterface* renderer);
47 virtual VideoSourceInterface* GetSource() const { 47 virtual VideoSourceInterface* GetSource() const {
48 return video_source_.get(); 48 return video_source_.get();
49 } 49 }
50 rtc::VideoSinkInterface<cricket::VideoFrame>* GetSink() override;
50 virtual bool set_enabled(bool enable); 51 virtual bool set_enabled(bool enable);
51 virtual std::string kind() const; 52 virtual std::string kind() const;
52 53
53 protected: 54 protected:
54 VideoTrack(const std::string& id, VideoSourceInterface* video_source); 55 VideoTrack(const std::string& id, VideoSourceInterface* video_source);
55 ~VideoTrack(); 56 ~VideoTrack();
56 57
57 private: 58 private:
58 VideoTrackRenderers renderers_; 59 VideoTrackRenderers renderers_;
59 rtc::scoped_refptr<VideoSourceInterface> video_source_; 60 rtc::scoped_refptr<VideoSourceInterface> video_source_;
60 }; 61 };
61 62
62 } // namespace webrtc 63 } // namespace webrtc
63 64
64 #endif // TALK_APP_WEBRTC_VIDEOTRACK_H_ 65 #endif // TALK_APP_WEBRTC_VIDEOTRACK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698