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

Unified Diff: media/base/video_frame.cc

Issue 1265433003: Preliminary change for new rtc rendering algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« media/base/video_frame.h ('K') | « media/base/video_frame.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.cc
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index 51269a8b6076736e3b1c03e6fd7e46635901c956..57345426c025d8fb3eec1220d3397dab2fbb6216 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -771,7 +771,8 @@ VideoFrame::VideoFrame(VideoPixelFormat format,
shared_memory_handle_(base::SharedMemory::NULLHandle()),
shared_memory_offset_(0),
timestamp_(timestamp),
- release_sync_point_(0) {
+ release_sync_point_(0),
+ render_time_(base::TimeTicks()) {
DCHECK(IsValidConfig(format_, storage_type, coded_size_, visible_rect_,
natural_size_));
memset(&mailbox_holders_, 0, sizeof(mailbox_holders_));
@@ -865,4 +866,12 @@ void VideoFrame::AllocateYUV() {
AddDestructionObserver(base::Bind(&base::AlignedFree, data));
}
+base::TimeTicks VideoFrame::render_time() {
+ return render_time_;
+}
+
+void VideoFrame::set_render_time(base::TimeTicks render_time) {
+ render_time_ = render_time;
+}
+
} // namespace media
« media/base/video_frame.h ('K') | « media/base/video_frame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698