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

Unified Diff: webrtc/examples/peerconnection/client/linux/main_wnd.h

Issue 1684423002: Make VideoTrack and VideoTrackRenderers implement rtc::VideoSourceInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Delete unused last_frame method and corresponding member. 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/examples/peerconnection/client/linux/main_wnd.h
diff --git a/webrtc/examples/peerconnection/client/linux/main_wnd.h b/webrtc/examples/peerconnection/client/linux/main_wnd.h
index e35d4dd8fa9b1ba54dfb3be9b7ce169a684f608f..a7eb25e9b1ea7ffa18ba1aaf6e1d6b308087e64a 100644
--- a/webrtc/examples/peerconnection/client/linux/main_wnd.h
+++ b/webrtc/examples/peerconnection/client/linux/main_wnd.h
@@ -71,7 +71,7 @@ class GtkMainWnd : public MainWindow {
void OnRedraw();
protected:
- class VideoRenderer : public webrtc::VideoRendererInterface {
+ class VideoRenderer : public rtc::VideoSinkInterface<cricket::VideoFrame> {
public:
VideoRenderer(GtkMainWnd* main_wnd,
webrtc::VideoTrackInterface* track_to_render);
@@ -79,7 +79,7 @@ class GtkMainWnd : public MainWindow {
// VideoRendererInterface implementation
virtual void SetSize(int width, int height);
- virtual void RenderFrame(const cricket::VideoFrame* frame);
+ virtual void OnFrame(const cricket::VideoFrame& frame);
const uint8_t* image() const { return image_.get(); }

Powered by Google App Engine
This is Rietveld 408576698