From d8816c3c4cd99cf51108f2a892c7a01b0de24057 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Thu, 16 Sep 2010 14:07:33 -0700 Subject: Fix app switch latency optimization. This optimization was broken due to recent changes in how ANRs are handled. Change-Id: Ic99248a12755fadac8d4893e7d305b773e038d3d --- include/ui/InputDispatcher.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include') 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); -- cgit v1.1