diff options
author | sheu@chromium.org <sheu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-08 06:15:43 +0000 |
---|---|---|
committer | sheu@chromium.org <sheu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-08 06:15:43 +0000 |
commit | ee74aa5e23bddc14fa5c8b00036acf897f2b3861 (patch) | |
tree | b6d03d25367dd04d4b0b6069df19a6121a3f4fbb /content/port | |
parent | f19a42a5b8158e5d3c4910227552b3d43e164b62 (diff) | |
download | chromium_src-ee74aa5e23bddc14fa5c8b00036acf897f2b3861.zip chromium_src-ee74aa5e23bddc14fa5c8b00036acf897f2b3861.tar.gz chromium_src-ee74aa5e23bddc14fa5c8b00036acf897f2b3861.tar.bz2 |
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
Diffstat (limited to 'content/port')
-rw-r--r-- | content/port/browser/render_widget_host_view_frame_subscriber.h | 12 |
1 files changed, 5 insertions, 7 deletions
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<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 |