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

Issue 2289173003: Make event timestamp consistent in renderer even if TimeTicks isn't consistent x-process. (Closed)

Created:
4 years, 3 months ago by majidvp
Modified:
4 years, 3 months ago
Reviewers:
dtapuska
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, dtapuska+chromiumwatch_chromium.org, tdresser
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use IO thread time for event timestamp if TimeTicks isn't consistent x-process. On some platforms (a subset of Windows) we don't have a monotonic clock that is consistent across processes. On such platforms we cannot reliably compare timeticks that are from different processes. This is particularly problematic for WebInputEvent whose timestamp comes from UI process but is consumed by the renderer process and eventually exposed to the web as high-resolution timestamp. This patch introduces a fallback where we use the message received time on the renderer IO thread (i.e., the earliest time we get the message on the renderer) as the event timestamp and sidestep the inconsistency. BUG=642714 Committed: https://crrev.com/5802f789601b88d99f72d8ed081651df4b3fdf4b Cr-Commit-Position: refs/heads/master@{#416737}

Patch Set 1 #

Patch Set 2 : rebae #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -4 lines) Patch
M content/renderer/input/input_event_filter.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/input/input_event_filter.cc View 1 5 chunks +15 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
majidvp
4 years, 3 months ago (2016-08-31 12:23:39 UTC) #11
majidvp
On 2016/08/31 12:23:39, majidvp wrote: dtapuska@: friendly ping!
4 years, 3 months ago (2016-09-06 20:10:34 UTC) #13
dtapuska
On 2016/09/06 20:10:34, majidvp wrote: > On 2016/08/31 12:23:39, majidvp wrote: > > dtapuska@: friendly ...
4 years, 3 months ago (2016-09-06 20:40:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2289173003/20001
4 years, 3 months ago (2016-09-06 20:49:30 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-06 22:04:21 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 22:06:17 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5802f789601b88d99f72d8ed081651df4b3fdf4b
Cr-Commit-Position: refs/heads/master@{#416737}

Powered by Google App Engine
This is Rietveld 408576698