From ee74aa5e23bddc14fa5c8b00036acf897f2b3861 Mon Sep 17 00:00:00 2001 From: "sheu@chromium.org" Date: Wed, 8 Jan 2014 06:15:43 +0000 Subject: Convert video capture pipline to base::TimeTicks base::TimeTicks is a monotonic clock, unlike base::Time, which may change if the system time is changed. Switch over the video capture pipeline to use this clock. BUG=249215 TEST=local build, run on CrOS snow, desktop Linux Review URL: https://codereview.chromium.org/101843005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243493 0039d316-1c4b-4281-b951-d872f2087c98 --- .../port/browser/render_widget_host_view_frame_subscriber.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'content/port') 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 c99624f..76fd4b1 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 DeliverFrameCallback; + typedef base::Callback 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* storage, - DeliverFrameCallback* callback) = 0; + virtual bool ShouldCaptureFrame(base::TimeTicks present_time, + scoped_refptr* storage, + DeliverFrameCallback* callback) = 0; }; } // namespace content -- cgit v1.1