OSDN Git Service

Accurately track the sequence numbers of batched events.
authorJeff Brown <jeffbrown@google.com>
Mon, 13 Feb 2012 21:18:09 +0000 (13:18 -0800)
committerJeff Brown <jeffbrown@google.com>
Mon, 13 Feb 2012 21:59:32 +0000 (13:59 -0800)
commita18829ab231384858456a8a67b06a3f1e37d2794
treef200e6c9f63d54186a2ecb6ea93f42b819cb41b4
parent0a63adaff2ffa945f5e105ee39aec9dcf22954e7
Accurately track the sequence numbers of batched events.

Instead of sending finished signals immediately when appending to
a batch, record the chain of sequence numbers that were part of
the batch and then send finished signals all at once when done.
This change helps the dispatcher keep track of the true state
of the application and can improve ANR detection slightly.

This is part of a series of changes to improve input system pipelining.

Bug: 5963420
Change-Id: I463c2221e2aa8fdf1c3d670c18e39e59ab69b0db
include/ui/InputTransport.h
libs/ui/InputTransport.cpp