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

Unified Diff: webrtc/modules/video_processing/test/video_processing_unittest.cc

Issue 2397943003: Revert of Delete webrtc::VideoFrame::CopyFrame. (Closed)
Patch Set: 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/modules/video_processing/test/video_processing_unittest.cc
diff --git a/webrtc/modules/video_processing/test/video_processing_unittest.cc b/webrtc/modules/video_processing/test/video_processing_unittest.cc
index 259829ad8f8339c5f5cb8174559c5fa884bcbb80..43238bcd18d1b1fa583afe749312c81931e64b1f 100644
--- a/webrtc/modules/video_processing/test/video_processing_unittest.cc
+++ b/webrtc/modules/video_processing/test/video_processing_unittest.cc
@@ -250,10 +250,9 @@
// Scale |resampled_source_frame| back to the source scale.
VideoFrame resampled_source_frame;
- resampled_source_frame.ShallowCopy(*out_frame);
+ resampled_source_frame.CopyFrame(*out_frame);
// Compute PSNR against the cropped source frame and check expectation.
- PreprocessFrameAndVerify(resampled_source_frame,
- cropped_source.width(),
+ PreprocessFrameAndVerify(resampled_source_frame, cropped_source.width(),
cropped_source.height(), vpm, out_frame);
WriteProcessedFrameForVisualInspection(resampled_source_frame, *out_frame);
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc ('k') | webrtc/video/video_quality_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698