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

Unified Diff: media/video/gpu_memory_buffer_video_frame_pool.cc

Issue 1418923006: Carry over REFERENCE_TIME for the frames using GPU Memory Buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/gpu_memory_buffer_video_frame_pool.cc
diff --git a/media/video/gpu_memory_buffer_video_frame_pool.cc b/media/video/gpu_memory_buffer_video_frame_pool.cc
index cfe8d69b00a9c38031156dee6bf067e3057e6c2a..f1bed2b05d1b50dc72ea739a5843efd42ff5cc9d 100644
--- a/media/video/gpu_memory_buffer_video_frame_pool.cc
+++ b/media/video/gpu_memory_buffer_video_frame_pool.cc
@@ -567,6 +567,14 @@ void GpuMemoryBufferVideoFramePool::PoolImpl::
default:
NOTREACHED();
}
+
+ base::TimeTicks render_time;
+ if (video_frame->metadata()->GetTimeTicks(VideoFrameMetadata::REFERENCE_TIME,
+ &render_time)) {
+ frame->metadata()->SetTimeTicks(VideoFrameMetadata::REFERENCE_TIME,
+ render_time);
+ }
+
frame_ready_cb.Run(frame);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698