ozone: Map TouchEvent::touch_id_ into expected range
Touch events from evdev have a slot identifier to represent which fingers are touched. Prior to this change this slot identifier was used as the TouchEvent::touch_id_. However this breaks with multiple touchscreens as the range for the slots will be the same. This CL resolves that by using a SequentialIDGenerator to map a unique device and slot id to an unused touch id in the sequence. The touch id is released when the touch is released or cancelled. BUG=472308 TEST=Manual testing on link_freon with uncommitted VLOG messages. Review URL: https://codereview.chromium.org/1048333005 Cr-Commit-Position: refs/heads/master@{#325255}
Showing
Please register or sign in to comment