From ee74aa5e23bddc14fa5c8b00036acf897f2b3861 Mon Sep 17 00:00:00 2001 From: "sheu@chromium.org" <sheu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> 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 --- content/browser/gpu/gpu_process_host.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/browser/gpu/gpu_process_host.cc') diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc index 67edcda..9e5861e 100644 --- a/content/browser/gpu/gpu_process_host.cc +++ b/content/browser/gpu/gpu_process_host.cc @@ -981,7 +981,7 @@ void GpuProcessHost::OnAcceleratedSurfaceBuffersSwapped( FrameSubscriberMap::iterator it = frame_subscribers_.find(params.surface_id); if (it != frame_subscribers_.end() && it->second) { - const base::Time present_time = base::Time::Now(); + const base::TimeTicks present_time = base::TimeTicks::Now(); scoped_refptr<media::VideoFrame> target_frame; RenderWidgetHostViewFrameSubscriber::DeliverFrameCallback copy_callback; if (it->second->ShouldCaptureFrame(present_time, -- cgit v1.1