DescriptionAvoid heap allocation with uncoalesced touch events
Each enqueued event in the browser-side touch queue maintains a vector
of events that must be ack'ed, allowing each enqueued event to coalesce
with subsequent events delivered from the platform. Currently, the
vector is always populated with the first event, even if no coalescing
occurs. Instead, defer population until coalescing occurs, optimizing
the common case for most events by avoiding an extra heap allocation for
every touch. This can save ~5-10us per forwarded touch event on a typical
Android device.
BUG=384562
Committed: https://crrev.com/59886ae9da6fc726873723cc2ea9d0db10adab22
Cr-Commit-Position: refs/heads/master@{#295998}
Patch Set 1 #Patch Set 2 : Rebase #
Messages
Total messages: 11 (2 generated)
|