diff options
author | Jeff Brown <jeffbrown@google.com> | 2010-09-16 14:07:33 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2010-09-16 16:41:46 -0700 |
commit | 54a1825121d006d4a4dcbbadf4eac9910f44ef8c (patch) | |
tree | 70410aee79ef0d318b89aefb5737f0e8c097558b /include/ui | |
parent | 24326f7223275ba9c85014b86d42040e3a7d2815 (diff) | |
download | frameworks_base-54a1825121d006d4a4dcbbadf4eac9910f44ef8c.zip frameworks_base-54a1825121d006d4a4dcbbadf4eac9910f44ef8c.tar.gz frameworks_base-54a1825121d006d4a4dcbbadf4eac9910f44ef8c.tar.bz2 |
Fix app switch latency optimization.
This optimization was broken due to recent changes in how ANRs are handled.
Change-Id: Ic99248a12755fadac8d4893e7d305b773e038d3d
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/InputDispatcher.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/ui/InputDispatcher.h b/include/ui/InputDispatcher.h index e466ddd..96b4fae 100644 --- a/include/ui/InputDispatcher.h +++ b/include/ui/InputDispatcher.h @@ -851,8 +851,8 @@ private: // Inbound event processing. void drainInboundQueueLocked(); - void releasePendingEventLocked(bool wasDropped); - void releaseInboundEventLocked(EventEntry* entry, bool wasDropped); + void releasePendingEventLocked(); + void releaseInboundEventLocked(EventEntry* entry); bool isEventFromReliableSourceLocked(EventEntry* entry); // Dispatch state. @@ -886,10 +886,10 @@ private: nsecs_t currentTime, ConfigurationChangedEntry* entry); bool dispatchKeyLocked( nsecs_t currentTime, KeyEntry* entry, nsecs_t keyRepeatTimeout, - nsecs_t* nextWakeupTime); + bool dropEvent, nsecs_t* nextWakeupTime); bool dispatchMotionLocked( nsecs_t currentTime, MotionEntry* entry, - nsecs_t* nextWakeupTime); + bool dropEvent, nsecs_t* nextWakeupTime); void dispatchEventToCurrentInputTargetsLocked( nsecs_t currentTime, EventEntry* entry, bool resumeWithAppendedMotionSample); @@ -914,8 +914,8 @@ private: bool mInputTargetWaitTimeoutExpired; // Finding targets for input events. - void startFindingTargetsLocked(); - void finishFindingTargetsLocked(const InputWindow* window); + void resetTargetsLocked(); + void commitTargetsLocked(const InputWindow* window); int32_t handleTargetsNotReadyLocked(nsecs_t currentTime, const EventEntry* entry, const InputApplication* application, const InputWindow* window, nsecs_t* nextWakeupTime); |