Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Unified Diff: ui/events/latency_info.cc

Issue 864943002: Replaces instances of the deprecated TimeTicks::HighResNow() with TimeTicks::Now(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More changes based on review comments. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/layer_animator.cc ('k') | ui/gl/gl_surface_glx.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/latency_info.cc
diff --git a/ui/events/latency_info.cc b/ui/events/latency_info.cc
index 6050d260129072c3c5c4e0410862cb9c97fca1aa..bb2215c0587dd343218c7ef3fd76292dbdc4c32f 100644
--- a/ui/events/latency_info.cc
+++ b/ui/events/latency_info.cc
@@ -201,7 +201,7 @@ void LatencyInfo::AddLatencyNumber(LatencyComponentType component,
int64 id,
int64 component_sequence_number) {
AddLatencyNumberWithTimestamp(component, id, component_sequence_number,
- base::TimeTicks::HighResNow(), 1);
+ base::TimeTicks::Now(), 1);
}
void LatencyInfo::AddLatencyNumberWithTimestamp(LatencyComponentType component,
@@ -238,7 +238,7 @@ void LatencyInfo::AddLatencyNumberWithTimestamp(LatencyComponentType component,
// CrOS). So we need to adjust the diff between in CLOCK_MONOTONIC and
// CLOCK_SYSTEM_TRACE. Note that the diff is drifting overtime so we
// can't use a static value.
- int64 diff = base::TimeTicks::HighResNow().ToInternalValue() -
+ int64 diff = base::TimeTicks::Now().ToInternalValue() -
base::TimeTicks::NowFromSystemTraceTime().ToInternalValue();
ts = component.event_time.ToInternalValue() - diff;
} else {
« no previous file with comments | « ui/compositor/layer_animator.cc ('k') | ui/gl/gl_surface_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698