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

Unified Diff: third_party/WebKit/Source/core/input/TouchEventManager.cpp

Issue 2542693002: Use WTF::TimeTicks to represent timestamp in Platform/Core event types (Closed)
Patch Set: rebase Created 4 years 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
Index: third_party/WebKit/Source/core/input/TouchEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/TouchEventManager.cpp b/third_party/WebKit/Source/core/input/TouchEventManager.cpp
index 0fec09a24220ea2205795ebf1736ad29ac99b562..4dc83426950a7c130d7d4e4b50df1f73604dd6be 100644
--- a/third_party/WebKit/Source/core/input/TouchEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/TouchEventManager.cpp
@@ -206,8 +206,8 @@ WebInputEventResult TouchEventManager::dispatchTouchEvents(
m_frame->isMainFrame()) {
// Record the disposition and latency of touch starts and first touch
// moves before and after the page is fully loaded respectively.
- int64_t latencyInMicros = static_cast<int64_t>(
- (monotonicallyIncreasingTime() - event.timestamp()) * 1000000.0);
+ int64_t latencyInMicros =
+ (TimeTicks::Now() - event.timestamp()).InMicroseconds();
if (event.cancelable()) {
if (m_frame->document()->isLoadCompleted()) {
DEFINE_STATIC_LOCAL(EnumerationHistogram,

Powered by Google App Engine
This is Rietveld 408576698