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

Issue 565033002: Avoid heap allocation with uncoalesced touch events (Closed)

Created:
6 years, 3 months ago by jdduke (slow)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jdduke+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Avoid 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -38 lines) Patch
M content/browser/renderer_host/input/touch_event_queue.h View 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 5 chunks +36 lines, -36 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
jdduke (slow)
miletus@: PTAL, thanks. Another thought would be to have a ring buffer of CoalescedTouchEvents that ...
6 years, 3 months ago (2014-09-11 23:53:06 UTC) #2
Yufeng Shen (Slow to review)
On 2014/09/11 23:53:06, jdduke wrote: > miletus@: PTAL, thanks. Another thought would be to have ...
6 years, 3 months ago (2014-09-12 19:11:55 UTC) #3
jdduke (slow)
On 2014/09/12 19:11:55, Yufeng Shen wrote: > On 2014/09/11 23:53:06, jdduke wrote: > > miletus@: ...
6 years, 3 months ago (2014-09-12 19:27:32 UTC) #4
Yufeng Shen (Slow to review)
On 2014/09/12 19:27:32, jdduke wrote: > On 2014/09/12 19:11:55, Yufeng Shen wrote: > > On ...
6 years, 3 months ago (2014-09-12 19:40:04 UTC) #5
jdduke (slow)
On 2014/09/12 19:40:04, Yufeng Shen wrote: > Yeah, using StackVector with size 1 would keep ...
6 years, 3 months ago (2014-09-15 16:42:10 UTC) #6
Yufeng Shen (Slow to review)
On 2014/09/15 16:42:10, jdduke wrote: > On 2014/09/12 19:40:04, Yufeng Shen wrote: > > Yeah, ...
6 years, 3 months ago (2014-09-15 18:58:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/565033002/20001
6 years, 3 months ago (2014-09-22 16:03:51 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 4507604e238fca14c3552e5cd7da15f8c19baa7c
6 years, 3 months ago (2014-09-22 16:53:37 UTC) #10
commit-bot: I haz the power
6 years, 3 months ago (2014-09-22 16:54:14 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/59886ae9da6fc726873723cc2ea9d0db10adab22
Cr-Commit-Position: refs/heads/master@{#295998}

Powered by Google App Engine
This is Rietveld 408576698