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

Unified Diff: remoting/host/video_frame_recorder_unittest.cc

Issue 1150163002: Update VideoFramePump to pass un-changed frames to encoders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work-around Visual Studio issue w/ undefined references Created 5 years, 6 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
« no previous file with comments | « remoting/host/video_frame_pump_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/video_frame_recorder_unittest.cc
diff --git a/remoting/host/video_frame_recorder_unittest.cc b/remoting/host/video_frame_recorder_unittest.cc
index ac00e451b9e0f5836e7c41d0f92c789260d9b77f..319201254a53edbb69c1d1ff0d83132f8bb9265e 100644
--- a/remoting/host/video_frame_recorder_unittest.cc
+++ b/remoting/host/video_frame_recorder_unittest.cc
@@ -132,11 +132,11 @@ scoped_ptr<webrtc::DesktopFrame> VideoFrameRecorderTest::CreateNextFrame() {
// Fill content, DPI and updated-region based on |frame_count_| so that each
// generated frame is different.
+ ++frame_count_;
memset(frame->data(), frame_count_, frame->stride() * kFrameHeight);
frame->set_dpi(webrtc::DesktopVector(frame_count_, frame_count_));
frame->mutable_updated_region()->SetRect(
webrtc::DesktopRect::MakeWH(frame_count_, frame_count_));
- ++frame_count_;
return frame.Pass();
}
@@ -160,6 +160,8 @@ void VideoFrameRecorderTest::EncodeTestFrames() {
void VideoFrameRecorderTest::EncodeDummyFrame() {
webrtc::BasicDesktopFrame dummy_frame(
webrtc::DesktopSize(kFrameWidth, kFrameHeight));
+ dummy_frame.mutable_updated_region()->SetRect(
+ webrtc::DesktopRect::MakeWH(kFrameWidth, kFrameHeight));
ASSERT_TRUE(encoder_->Encode(dummy_frame));
base::RunLoop().RunUntilIdle();
}
« no previous file with comments | « remoting/host/video_frame_pump_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698