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

Unified Diff: webrtc/common_video/video_frame.cc

Issue 2371363003: Delete webrtc::VideoFrame::CopyFrame. (Closed)
Patch Set: Rebase. Created 4 years, 2 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
Index: webrtc/common_video/video_frame.cc
diff --git a/webrtc/common_video/video_frame.cc b/webrtc/common_video/video_frame.cc
index 9a8f8ab3187e10d5f1eb15dc8226f3bcf23ef4e9..7145a623e65ef4837c7b216b528ae1575254506a 100644
--- a/webrtc/common_video/video_frame.cc
+++ b/webrtc/common_video/video_frame.cc
@@ -93,15 +93,6 @@ void VideoFrame::CreateFrame(const uint8_t* buffer,
stride_uv, stride_uv, rotation);
}
-void VideoFrame::CopyFrame(const VideoFrame& videoFrame) {
- ShallowCopy(videoFrame);
-
- // If backed by a plain memory buffer, create a new, non-shared, copy.
- if (video_frame_buffer_ && !video_frame_buffer_->native_handle()) {
- video_frame_buffer_ = I420Buffer::Copy(video_frame_buffer_);
- }
-}
-
void VideoFrame::ShallowCopy(const VideoFrame& videoFrame) {
video_frame_buffer_ = videoFrame.video_frame_buffer();
timestamp_rtp_ = videoFrame.timestamp_rtp_;
« no previous file with comments | « webrtc/common_video/i420_video_frame_unittest.cc ('k') | webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698