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

Side by Side Diff: talk/app/webrtc/videosourceinterface.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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 RemoveSink( 64 RemoveSink(
65 static_cast<rtc::VideoSinkInterface<cricket::VideoFrame>*>(output)); 65 static_cast<rtc::VideoSinkInterface<cricket::VideoFrame>*>(output));
66 } 66 }
67 67
68 // Adds |output| to the source to receive frames. 68 // Adds |output| to the source to receive frames.
69 // TODO(nisse): Delete dummy default implementation. 69 // TODO(nisse): Delete dummy default implementation.
70 virtual void AddSink(rtc::VideoSinkInterface<cricket::VideoFrame>* output){}; 70 virtual void AddSink(rtc::VideoSinkInterface<cricket::VideoFrame>* output){};
71 virtual void RemoveSink( 71 virtual void RemoveSink(
72 rtc::VideoSinkInterface<cricket::VideoFrame>* output){}; 72 rtc::VideoSinkInterface<cricket::VideoFrame>* output){};
73 virtual const cricket::VideoOptions* options() const = 0; 73 virtual const cricket::VideoOptions* options() const = 0;
74 virtual cricket::VideoRenderer* FrameInput() = 0;
75 74
76 protected: 75 protected:
77 virtual ~VideoSourceInterface() {} 76 virtual ~VideoSourceInterface() {}
78 }; 77 };
79 78
80 } // namespace webrtc 79 } // namespace webrtc
81 80
82 #endif // TALK_APP_WEBRTC_VIDEOSOURCEINTERFACE_H_ 81 #endif // TALK_APP_WEBRTC_VIDEOSOURCEINTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698