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

Unified Diff: media/capture/video/mac/video_capture_device_mac.h

Issue 1421583007: Mac Video Capture: Sending the timestamps provided by the driver to the capture pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Alignment Created 5 years, 1 month 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: media/capture/video/mac/video_capture_device_mac.h
diff --git a/media/capture/video/mac/video_capture_device_mac.h b/media/capture/video/mac/video_capture_device_mac.h
index c36248eb29323ef0837fc59b30788ad7e1080ca0..f22848dc7c9af9090b448f0c7484dab7cb5fe89e 100644
--- a/media/capture/video/mac/video_capture_device_mac.h
+++ b/media/capture/video/mac/video_capture_device_mac.h
@@ -70,7 +70,8 @@ class VideoCaptureDeviceMac : public VideoCaptureDevice {
int video_frame_length,
const VideoCaptureFormat& frame_format,
int aspect_numerator,
- int aspect_denominator);
+ int aspect_denominator,
+ base::TimeDelta timestamp);
// Forwarder to VideoCaptureDevice::Client::OnError().
void ReceiveError(const std::string& reason);
@@ -102,6 +103,9 @@ class VideoCaptureDeviceMac : public VideoCaptureDevice {
id<PlatformVideoCapturingMac> capture_device_;
+ base::TimeDelta first_timestamp_;
+ base::TimeTicks first_aligned_timestamp_;
+
// Used with Bind and PostTask to ensure that methods aren't called after the
// VideoCaptureDeviceMac is destroyed.
// NOTE: Weak pointers must be invalidated before all other member variables.
« no previous file with comments | « media/capture/video/mac/video_capture_device_avfoundation_mac.mm ('k') | media/capture/video/mac/video_capture_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698