summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-16 12:33:00 +0000
committerbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-16 12:33:00 +0000
commit9b09648ea074f1e86aab75e89342ef05921ee786 (patch)
tree57efed2f0264930aa0122efc0e98af855d31a284 /ui
parent59b79c39253a2b805f8d0bddebdc6d16d95c16c3 (diff)
downloadchromium_src-9b09648ea074f1e86aab75e89342ef05921ee786.zip
chromium_src-9b09648ea074f1e86aab75e89342ef05921ee786.tar.gz
chromium_src-9b09648ea074f1e86aab75e89342ef05921ee786.tar.bz2
CrOS: Keep the sign on the media stream counter diff.
BUG=221701 Review URL: https://codereview.chromium.org/13828013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/gl/vsync_provider.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gl/vsync_provider.cc b/ui/gl/vsync_provider.cc
index e54120c..0bf29eb 100644
--- a/ui/gl/vsync_provider.cc
+++ b/ui/gl/vsync_provider.cc
@@ -117,7 +117,7 @@ void SyncControlVSyncProvider::GetVSyncParameters(
base::TimeDelta::FromSeconds(denominator) / numerator);
} else if (!last_timebase_.is_null()) {
base::TimeDelta timebase_diff = timebase - last_timebase_;
- uint64 counter_diff = media_stream_counter -
+ int64 counter_diff = media_stream_counter -
last_media_stream_counter_;
if (counter_diff > 0 && timebase > last_timebase_)
last_computed_intervals_.push(timebase_diff / counter_diff);