diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-02-13 12:44:01 -0800 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-02-13 12:44:01 -0800 |
commit | 90fde93c473aca5a33dc41c989bb2fdc5f2b1485 (patch) | |
tree | 8011cef8b049d51018daa6b386491c427c400229 /include | |
parent | 072ec96a4900d4616574733646ee46311cb5d2cb (diff) | |
download | frameworks_base-90fde93c473aca5a33dc41c989bb2fdc5f2b1485.zip frameworks_base-90fde93c473aca5a33dc41c989bb2fdc5f2b1485.tar.gz frameworks_base-90fde93c473aca5a33dc41c989bb2fdc5f2b1485.tar.bz2 |
Enable deferred input messages to be batched.
This is part of a series of changes to improve input system pipelining.
Bug: 5963420
Change-Id: I6874d2128e880a35c6c33890c858cc6ee22af0fd
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/InputTransport.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/ui/InputTransport.h b/include/ui/InputTransport.h index bdd2fb9..46b56ff 100644 --- a/include/ui/InputTransport.h +++ b/include/ui/InputTransport.h @@ -297,10 +297,12 @@ public: private: sp<InputChannel> mChannel; - // State about an event that consume would have returned except that it had to - // return a completed batch first. Sequence number is non-zero if an event was deferred. - uint32_t mDeferredEventSeq; - MotionEvent mDeferredEvent; + // The current input message. + InputMessage mMsg; + + // True if mMsg contains a valid input message that was deferred from the previous + // call to consume and that still needs to be handled. + bool mMsgDeferred; // Batched motion events per device and source. struct Batch { |