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

Unified Diff: content/port/browser/render_widget_host_view_frame_subscriber.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
« no previous file with comments | « content/common/media/video_capture_messages.h ('k') | content/renderer/media/video_capture_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/port/browser/render_widget_host_view_frame_subscriber.h
diff --git a/content/port/browser/render_widget_host_view_frame_subscriber.h b/content/port/browser/render_widget_host_view_frame_subscriber.h
index c99624f88d3b1f81e625cca948095aab709bba97..76fd4b13574a3024b37de7bed5d6ff7847c193cb 100644
--- a/content/port/browser/render_widget_host_view_frame_subscriber.h
+++ b/content/port/browser/render_widget_host_view_frame_subscriber.h
@@ -40,9 +40,8 @@ class RenderWidgetHostViewFrameSubscriber {
// If |frame_captured| is false then the content in frame provided is
// invalid. There was an error during the process of frame capture or the
// platform layer is shutting down. |timestamp| is also invalid in this case.
- typedef base::Callback<void(
- base::Time /* timestamp */,
- bool /* frame_captured */)> DeliverFrameCallback;
+ typedef base::Callback<void(base::TimeTicks /* timestamp */,
+ bool /* frame_captured */)> DeliverFrameCallback;
// Called when a new frame is going to be presented at time
// |present_time|. Implementation can decide whether the current frame should
@@ -61,10 +60,9 @@ class RenderWidgetHostViewFrameSubscriber {
// platform layer to decide when to deliver a captured frame.
//
// Return false if the current frame should not be captured.
- virtual bool ShouldCaptureFrame(
- base::Time present_time,
- scoped_refptr<media::VideoFrame>* storage,
- DeliverFrameCallback* callback) = 0;
+ virtual bool ShouldCaptureFrame(base::TimeTicks present_time,
+ scoped_refptr<media::VideoFrame>* storage,
+ DeliverFrameCallback* callback) = 0;
};
} // namespace content
« no previous file with comments | « content/common/media/video_capture_messages.h ('k') | content/renderer/media/video_capture_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698