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

Unified Diff: webrtc/video/video_send_stream_tests.cc

Issue 2633493002: Delete VideoFrame::set_render_time_ms. (Closed)
Patch Set: Add deprecation comments. Created 3 years, 11 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/video/video_send_stream_tests.cc
diff --git a/webrtc/video/video_send_stream_tests.cc b/webrtc/video/video_send_stream_tests.cc
index 12f2bda744c444ad7ed1e90fa3b647b55c089223..8c6c45acd5ddd65c8270b04e6a75c1566c7f75d6 100644
--- a/webrtc/video/video_send_stream_tests.cc
+++ b/webrtc/video/video_send_stream_tests.cc
@@ -1947,7 +1947,8 @@ VideoFrame CreateVideoFrame(int width, int height, uint8_t data) {
I420Buffer::Create(width, height, width, width / 2, width / 2),
kVideoRotation_0, data);
frame.set_timestamp(data);
- frame.set_render_time_ms(data);
+ // Use data as a ms timestamp.
+ frame.set_timestamp_us(data * rtc::kNumMicrosecsPerMillisec);
return frame;
}

Powered by Google App Engine
This is Rietveld 408576698