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

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

Issue 1817473002: Delete VideoRendererInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. 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/examples/peerconnection/client/main_wnd.h
diff --git a/webrtc/examples/peerconnection/client/main_wnd.h b/webrtc/examples/peerconnection/client/main_wnd.h
index 5cf38df8d78ec4cfb81c946e537aa43e67e1f23b..0e7f7968433c286a08120a8cf82c46490d1afddc 100644
--- a/webrtc/examples/peerconnection/client/main_wnd.h
+++ b/webrtc/examples/peerconnection/client/main_wnd.h
@@ -102,7 +102,7 @@ class MainWnd : public MainWindow {
HWND handle() const { return wnd_; }
- class VideoRenderer : public webrtc::VideoRendererInterface {
+ class VideoRenderer : public rtc::VideoSinkInterface<cricket::VideoFrame> {
public:
VideoRenderer(HWND wnd, int width, int height,
webrtc::VideoTrackInterface* track_to_render);
@@ -116,14 +116,15 @@ class MainWnd : public MainWindow {
::LeaveCriticalSection(&buffer_lock_);
}
- // VideoRendererInterface implementation
- virtual void SetSize(int width, int height);
- virtual void RenderFrame(const cricket::VideoFrame* frame);
+ // VideoSinkInterface implementation
+ void OnFrame(const cricket::VideoFrame& frame) override;
const BITMAPINFO& bmi() const { return bmi_; }
const uint8_t* image() const { return image_.get(); }
protected:
+ void SetSize(int width, int height);
+
enum {
SET_SIZE,
RENDER_FRAME,
« no previous file with comments | « webrtc/examples/peerconnection/client/linux/main_wnd.h ('k') | webrtc/examples/peerconnection/client/main_wnd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698