summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-02-13 12:44:01 -0800
committerJeff Brown <jeffbrown@google.com>2012-02-13 12:44:01 -0800
commit0a63adaff2ffa945f5e105ee39aec9dcf22954e7 (patch)
tree74ca96ccdf5a2bb03e527ffe5f8534ddddebfdfa /include/ui
parentf0490c94d01aa7536e4fd3bdf6a888099ba9a5c6 (diff)
downloadframeworks_native-0a63adaff2ffa945f5e105ee39aec9dcf22954e7.zip
frameworks_native-0a63adaff2ffa945f5e105ee39aec9dcf22954e7.tar.gz
frameworks_native-0a63adaff2ffa945f5e105ee39aec9dcf22954e7.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/ui')
-rw-r--r--include/ui/InputTransport.h10
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 {