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

Issue 991533002: Port Chromium OS touch noise filtering to Chromium (Closed)

Created:
5 years, 9 months ago by pkotwicz
Modified:
5 years, 9 months ago
Reviewers:
flackr, pkotwicz1, sadrul, spang
CC:
chromium-reviews, kalyank, jdduke+watch_chromium.org, ozone-reviews_chromium.org, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Port Chromium OS touch noise filtering to Chromium. The Chromium OS touch noise filtering is at https://chromium.googlesource.com/chromiumos/platform/touch_noise_filter/+/master When a touch is detected as touch noise, an ET_TOUCH_CANCELLED event is sent and all of the subsequent events for that touch are dropped. A "touch press" initiates a new touch. BUG=407840 TEST=TouchNoiseFinderTest.*, TouchEventConverterEvdevTouchNoiseTest.* Committed: https://crrev.com/1df4aa125090c601b1a18c4354b8ca9323cb4c79 Cr-Commit-Position: refs/heads/master@{#322293}

Patch Set 1 : #

Total comments: 16

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1023 lines, -109 lines) Patch
M ui/events/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/event_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/event_switches.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/events.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A ui/events/ozone/evdev/touch_evdev_types.h View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/touch_evdev_types.cc View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev.h View 1 2 3 4 5 6 7 6 chunks +15 lines, -24 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev.cc View 1 2 3 4 5 6 7 11 chunks +65 lines, -57 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc View 1 2 3 4 5 6 7 10 chunks +184 lines, -28 lines 0 comments Download
A ui/events/ozone/evdev/touch_noise/far_apart_taps_touch_noise_filter.h View 1 1 chunk +46 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/touch_noise/far_apart_taps_touch_noise_filter.cc View 1 2 3 4 1 chunk +91 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/touch_noise/horizontally_aligned_touch_noise_filter.h View 1 1 chunk +29 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/touch_noise/horizontally_aligned_touch_noise_filter.cc View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/touch_noise/single_position_touch_noise_filter.h View 1 2 3 4 5 6 1 chunk +55 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/touch_noise/single_position_touch_noise_filter.cc View 1 2 3 4 1 chunk +151 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/touch_noise/touch_noise_filter.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/touch_noise/touch_noise_finder.h View 1 1 chunk +48 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/touch_noise/touch_noise_finder.cc View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/touch_noise/touch_noise_finder_unittest.cc View 1 2 3 4 1 chunk +140 lines, -0 lines 0 comments Download
M ui/events/ozone/events_ozone.gyp View 1 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (20 generated)
pkotwicz
flackr@ can you please take a preliminary look at the touch noise filtering code? This ...
5 years, 9 months ago (2015-03-08 00:49:50 UTC) #3
flackr
https://codereview.chromium.org/991533002/diff/20001/ui/events/ozone/evdev/touch_event_converter_evdev.cc File ui/events/ozone/evdev/touch_event_converter_evdev.cc (right): https://codereview.chromium.org/991533002/diff/20001/ui/events/ozone/evdev/touch_event_converter_evdev.cc#newcode285 ui/events/ozone/evdev/touch_event_converter_evdev.cc:285: std::vector<TouchEventParams> to_dispatch; If I understand correctly, we construct and ...
5 years, 9 months ago (2015-03-10 05:23:40 UTC) #4
pkotwicz
Rob, can you please take another look? Sorry for the long delay. The new CL ...
5 years, 9 months ago (2015-03-13 03:53:16 UTC) #11
flackr
Thanks for integrating this, it looks good. Just a few comments. https://codereview.chromium.org/991533002/diff/20001/ui/events/ozone/evdev/touch_event_converter_evdev.cc File ui/events/ozone/evdev/touch_event_converter_evdev.cc (right): ...
5 years, 9 months ago (2015-03-13 15:08:36 UTC) #12
pkotwicz
flackr@ can you please take another look? I believe I have addressed all of your ...
5 years, 9 months ago (2015-03-17 01:41:27 UTC) #17
flackr
Looks good, just a couple comments. I think we don't need to introduce the new ...
5 years, 9 months ago (2015-03-17 03:54:15 UTC) #18
pkotwicz
flackr@ can you please take another look? https://codereview.chromium.org/991533002/diff/280001/ui/events/ozone/evdev/touch_event_converter_evdev.cc File ui/events/ozone/evdev/touch_event_converter_evdev.cc (right): https://codereview.chromium.org/991533002/diff/280001/ui/events/ozone/evdev/touch_event_converter_evdev.cc#newcode319 ui/events/ozone/evdev/touch_event_converter_evdev.cc:319: // state ...
5 years, 9 months ago (2015-03-17 16:51:23 UTC) #19
flackr
lgtm https://codereview.chromium.org/991533002/diff/280001/ui/events/ozone/evdev/touch_event_converter_evdev.cc File ui/events/ozone/evdev/touch_event_converter_evdev.cc (right): https://codereview.chromium.org/991533002/diff/280001/ui/events/ozone/evdev/touch_event_converter_evdev.cc#newcode319 ui/events/ozone/evdev/touch_event_converter_evdev.cc:319: // state to determine whether future touches should ...
5 years, 9 months ago (2015-03-17 16:59:04 UTC) #20
pkotwicz
spang@, can you please take a look at the changes in ui/events/ozone/evdev ?
5 years, 9 months ago (2015-03-17 17:04:50 UTC) #22
spang
https://codereview.chromium.org/991533002/diff/280001/ui/events/ozone/evdev/touch_evdev_types.h File ui/events/ozone/evdev/touch_evdev_types.h (right): https://codereview.chromium.org/991533002/diff/280001/ui/events/ozone/evdev/touch_evdev_types.h#newcode33 ui/events/ozone/evdev/touch_evdev_types.h:33: size_t slot; Is it needed to duplicate the offset ...
5 years, 9 months ago (2015-03-18 19:20:12 UTC) #23
pkotwicz1
spang@ can you please take another look? https://codereview.chromium.org/991533002/diff/280001/ui/events/ozone/evdev/touch_evdev_types.h File ui/events/ozone/evdev/touch_evdev_types.h (right): https://codereview.chromium.org/991533002/diff/280001/ui/events/ozone/evdev/touch_evdev_types.h#newcode33 ui/events/ozone/evdev/touch_evdev_types.h:33: size_t slot; ...
5 years, 9 months ago (2015-03-18 20:00:02 UTC) #25
spang
https://codereview.chromium.org/991533002/diff/280001/ui/events/ozone/evdev/touch_evdev_types.h File ui/events/ozone/evdev/touch_evdev_types.h (right): https://codereview.chromium.org/991533002/diff/280001/ui/events/ozone/evdev/touch_evdev_types.h#newcode34 ui/events/ozone/evdev/touch_evdev_types.h:34: EventType type; On 2015/03/18 20:00:02, pkotwicz22 wrote: > It ...
5 years, 9 months ago (2015-03-18 20:52:18 UTC) #26
spang
On 2015/03/18 20:52:18, spang wrote: > https://codereview.chromium.org/991533002/diff/280001/ui/events/ozone/evdev/touch_evdev_types.h > File ui/events/ozone/evdev/touch_evdev_types.h (right): > > https://codereview.chromium.org/991533002/diff/280001/ui/events/ozone/evdev/touch_evdev_types.h#newcode34 > ...
5 years, 9 months ago (2015-03-18 20:55:40 UTC) #27
pkotwicz
I have removed InProgressTouchEvdev::type and have added InProgressTouchEvdev::touching and InProgressTouchEvdev::was_touching I used InProgressTouchEvdev::touching/was_touching instead of ...
5 years, 9 months ago (2015-03-19 01:18:07 UTC) #30
spang
On 2015/03/19 01:18:07, pkotwicz wrote: > I have removed InProgressTouchEvdev::type and have added > InProgressTouchEvdev::touching ...
5 years, 9 months ago (2015-03-19 17:08:50 UTC) #31
spang
https://codereview.chromium.org/991533002/diff/340001/ui/events/ozone/evdev/touch_event_converter_evdev.cc File ui/events/ozone/evdev/touch_event_converter_evdev.cc (right): https://codereview.chromium.org/991533002/diff/340001/ui/events/ozone/evdev/touch_event_converter_evdev.cc#newcode211 ui/events/ozone/evdev/touch_event_converter_evdev.cc:211: events_[current_slot_].touching = false; Shouldn't we update the tracking id ...
5 years, 9 months ago (2015-03-19 17:08:59 UTC) #32
pkotwicz
Sadrul can you please take a look at the changes to ui/events/event_switches.* I ran the ...
5 years, 9 months ago (2015-03-23 16:41:19 UTC) #34
pkotwicz
https://codereview.chromium.org/991533002/diff/340001/ui/events/ozone/evdev/touch_event_converter_evdev.cc File ui/events/ozone/evdev/touch_event_converter_evdev.cc (right): https://codereview.chromium.org/991533002/diff/340001/ui/events/ozone/evdev/touch_event_converter_evdev.cc#newcode211 ui/events/ozone/evdev/touch_event_converter_evdev.cc:211: events_[current_slot_].touching = false; On 2015/03/19 17:08:58, spang wrote: > ...
5 years, 9 months ago (2015-03-23 16:41:34 UTC) #35
spang
On 2015/03/23 16:41:19, pkotwicz wrote: > Sadrul can you please take a look at the ...
5 years, 9 months ago (2015-03-23 16:51:41 UTC) #36
pkotwicz
Sadrul, can you please take a look. I have addressed spang@'s concern about type A ...
5 years, 9 months ago (2015-03-24 00:10:45 UTC) #37
pkotwicz
Sadrul, can you please take a look at the change to ui/events/events_switches.* I have addressed ...
5 years, 9 months ago (2015-03-24 21:06:36 UTC) #39
sadrul
Please update the CL description to say what code this is based off of, and ...
5 years, 9 months ago (2015-03-24 21:12:08 UTC) #40
pkotwicz
I have updated the CL description. To my knowledge the algorithms that we used for ...
5 years, 9 months ago (2015-03-25 19:29:15 UTC) #41
sadrul
Thanks! lgtm
5 years, 9 months ago (2015-03-25 19:50:55 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/991533002/410001
5 years, 9 months ago (2015-03-25 21:18:03 UTC) #45
commit-bot: I haz the power
Committed patchset #8 (id:410001)
5 years, 9 months ago (2015-03-26 01:50:56 UTC) #46
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/1df4aa125090c601b1a18c4354b8ca9323cb4c79 Cr-Commit-Position: refs/heads/master@{#322293}
5 years, 9 months ago (2015-03-26 01:51:53 UTC) #47
Mr4D (OOO till 08-26)
5 years, 9 months ago (2015-03-26 17:41:03 UTC) #48
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:410001) has been created in
https://codereview.chromium.org/1033933004/ by skuhne@chromium.org.

The reason for reverting is: This patch breaks the PFQ for 32/64 bit due to some
string conversion problems:

0.2346.0_rc-r1:
../../../../../../../home/chrome-bot/chrome_root/src/ui/events/ozone/evdev/touch_noise/single_position_touch_noise_filter.cc:100:63:
error: format '%ld' expects argument of type 'long int', but argument 3 has type
'int64 {aka long long int}' [-Werror=format=] chromeos-chrome-43.0.2346.0_rc-r1:
touch.tracking_id, max_duration.InMilliseconds());
should I revert this - or do you want to land a patch for it?
Oh - there is also another one:
0.2346.0_rc-r1:
../../../../../../../home/chrome-bot/chrome_root/src/ui/events/ozone/evdev/touch_noise/horizontally_aligned_touch_noise_filter.cc:
In member function 'virtual void
ui::HorizontallyAlignedTouchNoiseFilter::Filter(const
std::vector<ui::InProgressTouchEvdev>&, base::TimeDelta, std::bitset<20u>*)':
chromeos-chrome-43.0.2346.0_rc-r1:
../../../../../../../home/chrome-bot/chrome_root/src/ui/events/ozone/evdev/touch_noise/horizontally_aligned_touch_noise_filter.cc:39:66:
error: format '%ld' expects argument of type 'long int', but argument 3 has type
'int64 {aka long long int}' [-Werror=format=] chromeos-chrome-43.0.2346.0_rc-r1:
other_touch.tracking_id, other_touch.x, other_touch.y);.

Powered by Google App Engine
This is Rietveld 408576698