summaryrefslogtreecommitdiffstats
path: root/content/browser/gpu/gpu_process_host.cc
diff options
context:
space:
mode:
authorsheu@chromium.org <sheu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-08 06:15:43 +0000
committersheu@chromium.org <sheu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-08 06:15:43 +0000
commitee74aa5e23bddc14fa5c8b00036acf897f2b3861 (patch)
treeb6d03d25367dd04d4b0b6069df19a6121a3f4fbb /content/browser/gpu/gpu_process_host.cc
parentf19a42a5b8158e5d3c4910227552b3d43e164b62 (diff)
downloadchromium_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/browser/gpu/gpu_process_host.cc')
-rw-r--r--content/browser/gpu/gpu_process_host.cc2
1 files changed, 1 insertions, 1 deletions
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,