| Index: webrtc/common_video/video_frame.cc
|
| diff --git a/webrtc/common_video/video_frame.cc b/webrtc/common_video/video_frame.cc
|
| index 9c127602df0b08a0ea98ff66dbbd23a30ba29101..208a31b618f1b52f3d941c844246994d1432b106 100644
|
| --- a/webrtc/common_video/video_frame.cc
|
| +++ b/webrtc/common_video/video_frame.cc
|
| @@ -36,22 +36,6 @@ VideoFrame::VideoFrame(const rtc::scoped_refptr<VideoFrameBuffer>& buffer,
|
| rotation_(rotation) {
|
| }
|
|
|
| -VideoFrame::VideoFrame(void* native_handle,
|
| - int width,
|
| - int height,
|
| - uint32_t timestamp,
|
| - int64_t render_time_ms,
|
| - VideoRotation rotation,
|
| - const rtc::Callback0<void>& no_longer_used)
|
| - : VideoFrame(new rtc::RefCountedObject<TextureBuffer>(native_handle,
|
| - width,
|
| - height,
|
| - no_longer_used),
|
| - timestamp,
|
| - render_time_ms,
|
| - rotation) {
|
| -}
|
| -
|
| int VideoFrame::CreateEmptyFrame(int width,
|
| int height,
|
| int stride_y,
|
| @@ -211,4 +195,12 @@ void VideoFrame::set_video_frame_buffer(
|
| video_frame_buffer_ = buffer;
|
| }
|
|
|
| +VideoFrame VideoFrame::ConvertNativeToI420Frame() const {
|
| + DCHECK(native_handle());
|
| + VideoFrame frame;
|
| + frame.ShallowCopy(*this);
|
| + frame.set_video_frame_buffer(video_frame_buffer_->NativeToI420Buffer());
|
| + return frame;
|
| +}
|
| +
|
| } // namespace webrtc
|
|
|