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

Unified Diff: talk/app/webrtc/objc/RTCVideoRendererAdapter.mm

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
« no previous file with comments | « talk/app/webrtc/objc/RTCVideoRendererAdapter.h ('k') | talk/app/webrtc/objc/RTCVideoTrack.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/objc/RTCVideoRendererAdapter.mm
diff --git a/talk/app/webrtc/objc/RTCVideoRendererAdapter.mm b/talk/app/webrtc/objc/RTCVideoRendererAdapter.mm
index b0b21291b91604134b238003205022efa1b01a79..a7f7e95d05f9d8dbe11acd598ae15206ff85de35 100644
--- a/talk/app/webrtc/objc/RTCVideoRendererAdapter.mm
+++ b/talk/app/webrtc/objc/RTCVideoRendererAdapter.mm
@@ -36,15 +36,16 @@
namespace webrtc {
-class RTCVideoRendererNativeAdapter : public VideoRendererInterface {
+class RTCVideoRendererNativeAdapter
+ : public rtc::VideoSinkInterface<cricket::VideoFrame> {
public:
RTCVideoRendererNativeAdapter(RTCVideoRendererAdapter* adapter) {
_adapter = adapter;
_size = CGSizeZero;
}
- void RenderFrame(const cricket::VideoFrame* videoFrame) override {
- const cricket::VideoFrame* frame = videoFrame->GetCopyWithRotationApplied();
+ void OnFrame(const cricket::VideoFrame& videoFrame) override {
+ const cricket::VideoFrame* frame = videoFrame.GetCopyWithRotationApplied();
CGSize currentSize = CGSizeMake(frame->GetWidth(), frame->GetHeight());
if (!CGSizeEqualToSize(_size, currentSize)) {
_size = currentSize;
@@ -74,7 +75,7 @@ class RTCVideoRendererNativeAdapter : public VideoRendererInterface {
return self;
}
-- (webrtc::VideoRendererInterface*)nativeVideoRenderer {
+- (rtc::VideoSinkInterface<cricket::VideoFrame> *)nativeVideoRenderer {
return _adapter.get();
}
« no previous file with comments | « talk/app/webrtc/objc/RTCVideoRendererAdapter.h ('k') | talk/app/webrtc/objc/RTCVideoTrack.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698