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

Unified Diff: webrtc/modules/video_render/mac/video_render_nsopengl.h

Issue 1813173002: Deletes the class VideoRendererCallback. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Break long lines. Add explicit keyword on IncomingVideoStream constructor. 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_render/mac/video_render_nsopengl.h
diff --git a/webrtc/modules/video_render/mac/video_render_nsopengl.h b/webrtc/modules/video_render/mac/video_render_nsopengl.h
index 457557dad64cb28c4814194ea6f57ee975b32b65..a8a6c2b261d8723d55be8cdb42cad48d6383574c 100644
--- a/webrtc/modules/video_render/mac/video_render_nsopengl.h
+++ b/webrtc/modules/video_render/mac/video_render_nsopengl.h
@@ -40,7 +40,7 @@ class EventTimerWrapper;
class VideoRenderNSOpenGL;
class CriticalSectionWrapper;
-class VideoChannelNSOpenGL : public VideoRenderCallback {
+class VideoChannelNSOpenGL : public rtc::VideoSinkInterface<VideoFrame> {
public:
VideoChannelNSOpenGL(NSOpenGLContext *nsglContext, int iId, VideoRenderNSOpenGL* owner);
virtual ~VideoChannelNSOpenGL();
@@ -66,8 +66,7 @@ public:
virtual int UpdateStretchSize(int stretchHeight, int stretchWidth);
// ********** new module functions ************ //
- virtual int32_t RenderFrame(const uint32_t streamId,
- const VideoFrame& videoFrame);
+ void OnFrame(const VideoFrame& videoFrame) override;
// ********** new module helper functions ***** //
int ChangeContext(NSOpenGLContext *nsglContext);

Powered by Google App Engine
This is Rietveld 408576698