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

Side by Side Diff: content/renderer/media/video_frame_deliverer.cc

Issue 287313002: Pass a TimeTicks along video capture pipeline to represent capture time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged and land Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/video_frame_deliverer.h" 5 #include "content/renderer/media/video_frame_deliverer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 message_loop->PostTask( 66 message_loop->PostTask(
67 FROM_HERE, base::Bind(&ResetCallback, base::Passed(&callback))); 67 FROM_HERE, base::Bind(&ResetCallback, base::Passed(&callback)));
68 return; 68 return;
69 } 69 }
70 } 70 }
71 } 71 }
72 72
73 void VideoFrameDeliverer::DeliverFrameOnIO( 73 void VideoFrameDeliverer::DeliverFrameOnIO(
74 const scoped_refptr<media::VideoFrame>& frame, 74 const scoped_refptr<media::VideoFrame>& frame,
75 const media::VideoCaptureFormat& format) { 75 const media::VideoCaptureFormat& format,
76 const base::TimeTicks& estimated_capture_time) {
76 DCHECK(io_message_loop_->BelongsToCurrentThread()); 77 DCHECK(io_message_loop_->BelongsToCurrentThread());
77 for (std::vector<VideoIdCallbackPair>::iterator it = callbacks_.begin(); 78 for (std::vector<VideoIdCallbackPair>::iterator it = callbacks_.begin();
78 it != callbacks_.end(); ++it) { 79 it != callbacks_.end(); ++it) {
79 it->second.Run(frame, format); 80 it->second.Run(frame, format, estimated_capture_time);
80 } 81 }
81 } 82 }
82 83
83 } // namespace content 84 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/video_frame_deliverer.h ('k') | content/renderer/media/video_source_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698