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

Unified Diff: content/browser/renderer_host/media/video_capture_device_impl.h

Issue 101843005: Convert video capture pipline to base::TimeTicks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 9890509b Rebase, Windows compile fixes Created 6 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: content/browser/renderer_host/media/video_capture_device_impl.h
diff --git a/content/browser/renderer_host/media/video_capture_device_impl.h b/content/browser/renderer_host/media/video_capture_device_impl.h
index d9329b6aa43648246efb2c812e31150933ba1a2b..d2c03f50a2cd1ad51f6b6f60836b3260093ace42 100644
--- a/content/browser/renderer_host/media/video_capture_device_impl.h
+++ b/content/browser/renderer_host/media/video_capture_device_impl.h
@@ -51,11 +51,11 @@ class ThreadSafeCaptureOracle
// If |success| is true then the frame provided is valid and |timestamp|
// indicates when the frame was painted.
// If |success| is false, both the frame provided and |timestamp| are invalid.
- typedef base::Callback<void(base::Time timestamp, bool success)>
+ typedef base::Callback<void(base::TimeTicks timestamp, bool success)>
CaptureFrameCallback;
bool ObserveEventAndDecideCapture(VideoCaptureOracle::Event event,
- base::Time event_time,
+ base::TimeTicks event_time,
scoped_refptr<media::VideoFrame>* storage,
CaptureFrameCallback* callback);
@@ -81,7 +81,7 @@ class ThreadSafeCaptureOracle
void DidCaptureFrame(
scoped_refptr<media::VideoCaptureDevice::Client::Buffer> buffer,
int frame_number,
- base::Time timestamp,
+ base::TimeTicks timestamp,
bool success);
// Protects everything below it.
base::Lock lock_;

Powered by Google App Engine
This is Rietveld 408576698