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

Unified Diff: ui/events/ozone/evdev/touch_noise/far_apart_taps_touch_noise_filter.cc

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
Index: ui/events/ozone/evdev/touch_noise/far_apart_taps_touch_noise_filter.cc
diff --git a/ui/events/ozone/evdev/touch_noise/far_apart_taps_touch_noise_filter.cc b/ui/events/ozone/evdev/touch_noise/far_apart_taps_touch_noise_filter.cc
index f42dff3a681b04510295d62af48b5e427fc1252d..ba2e4597c5fd2d38af4b179b6d0a4fe09b970e96 100644
--- a/ui/events/ozone/evdev/touch_noise/far_apart_taps_touch_noise_filter.cc
+++ b/ui/events/ozone/evdev/touch_noise/far_apart_taps_touch_noise_filter.cc
@@ -43,10 +43,10 @@ int Distance2(int x1, int y1, int x2, int y2) {
void FarApartTapsTouchNoiseFilter::Filter(
const std::vector<InProgressTouchEvdev>& touches,
- base::TimeDelta time,
+ base::TimeTicks time,
std::bitset<kNumTouchEvdevSlots>* slots_with_noise) {
// Remove old taps.
- base::TimeDelta tap_cutoff =
+ base::TimeTicks tap_cutoff =
time - base::TimeDelta::FromMilliseconds(kMaxTapDeltaMs);
for (size_t i = 0; i < arraysize(tracked_taps_); ++i) {
if (tracked_taps_[i].start < tap_cutoff)

Powered by Google App Engine
This is Rietveld 408576698