Index: webrtc/common_video/video_frame_buffer.cc |
diff --git a/webrtc/common_video/video_frame_buffer.cc b/webrtc/common_video/video_frame_buffer.cc |
index 1d209370a6373b7fa0f58159bbc5801fe6c58b66..869eb4f87c65b9486eb2c6b4e0076be657234a2c 100644 |
--- a/webrtc/common_video/video_frame_buffer.cc |
+++ b/webrtc/common_video/video_frame_buffer.cc |
@@ -205,27 +205,6 @@ void I420Buffer::ScaleFrom(const rtc::scoped_refptr<VideoFrameBuffer>& src) { |
} |
// static |
-rtc::scoped_refptr<I420Buffer> I420Buffer::CopyKeepStride( |
- const rtc::scoped_refptr<VideoFrameBuffer>& source) { |
- int width = source->width(); |
- int height = source->height(); |
- int stride_y = source->StrideY(); |
- int stride_u = source->StrideU(); |
- int stride_v = source->StrideV(); |
- rtc::scoped_refptr<I420Buffer> target = |
- I420Buffer::Create(width, height, stride_y, stride_u, stride_v); |
- RTC_CHECK(libyuv::I420Copy(source->DataY(), stride_y, |
- source->DataU(), stride_u, |
- source->DataV(), stride_v, |
- target->MutableDataY(), stride_y, |
- target->MutableDataU(), stride_u, |
- target->MutableDataV(), stride_v, |
- width, height) == 0); |
- |
- return target; |
-} |
- |
-// static |
rtc::scoped_refptr<VideoFrameBuffer> I420Buffer::Rotate( |
const rtc::scoped_refptr<VideoFrameBuffer>& src, |
VideoRotation rotation) { |