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

Unified Diff: webrtc/sdk/objc/Framework/Classes/RTCVideoFrame.mm

Issue 2087923004: Revert of Delete method cricket::VideoFrame::Copy. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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 | « webrtc/media/engine/webrtcvideoframe_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/objc/Framework/Classes/RTCVideoFrame.mm
diff --git a/webrtc/sdk/objc/Framework/Classes/RTCVideoFrame.mm b/webrtc/sdk/objc/Framework/Classes/RTCVideoFrame.mm
index dcce32d8331649ab0ec965b66392ae9e9ca249aa..5b2d2586b156fd5cc68840ca5a28619c76ec7690 100644
--- a/webrtc/sdk/objc/Framework/Classes/RTCVideoFrame.mm
+++ b/webrtc/sdk/objc/Framework/Classes/RTCVideoFrame.mm
@@ -11,8 +11,6 @@
#import "RTCVideoFrame+Private.h"
#include <memory>
-
-#include "webrtc/media/engine/webrtcvideoframe.h"
@implementation RTCVideoFrame {
std::unique_ptr<cricket::VideoFrame> _videoFrame;
@@ -107,10 +105,7 @@
if (self = [super init]) {
// Keep a shallow copy of the video frame. The underlying frame buffer is
// not copied.
- _videoFrame.reset(new cricket::WebRtcVideoFrame(
- nativeFrame->video_frame_buffer(),
- nativeFrame->rotation(),
- nativeFrame->timestamp_us()));
+ _videoFrame.reset(nativeFrame->Copy());
}
return self;
}
« no previous file with comments | « webrtc/media/engine/webrtcvideoframe_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698