Delete method cricket::VideoFrame::Copy.

Should be unused in Chrome since cl
https://codereview.chromium.org/2068703002/

TBR=tkchin@webrtc.org,magjed@webrtc.org
BUG=webrtc:5682

Committed: https://crrev.com/9c00f646f0b3cd33506a1944c7bc6724af041237
Review-Url: https://codereview.webrtc.org/2080253002
Cr-Original-Commit-Position: refs/heads/master@{#13236}
Cr-Commit-Position: refs/heads/master@{#13244}
This commit is contained in:
nisse
2016-06-21 12:53:48 -07:00
committed by Commit bot
parent 3ee3d69e7d
commit 7e4e00d189
8 changed files with 13 additions and 61 deletions

View File

@ -12,6 +12,8 @@
#include <memory>
#include "webrtc/media/engine/webrtcvideoframe.h"
@implementation RTCVideoFrame {
std::unique_ptr<cricket::VideoFrame> _videoFrame;
rtc::scoped_refptr<webrtc::VideoFrameBuffer> _i420Buffer;
@ -105,7 +107,10 @@
if (self = [super init]) {
// Keep a shallow copy of the video frame. The underlying frame buffer is
// not copied.
_videoFrame.reset(nativeFrame->Copy());
_videoFrame.reset(new cricket::WebRtcVideoFrame(
nativeFrame->video_frame_buffer(),
nativeFrame->rotation(),
nativeFrame->timestamp_us()));
}
return self;
}