Delete premature optimization.
This is part of a series of changes to improve input system pipelining. Bug: 5963420 Change-Id: I5c182f6e17d468bf3033125b2094b2baa5b94e81
This commit is contained in:
@@ -2076,19 +2076,19 @@ void InputDispatcher::synthesizeCancelationEventsForConnectionLocked(
|
|||||||
|
|
||||||
nsecs_t currentTime = now();
|
nsecs_t currentTime = now();
|
||||||
|
|
||||||
mTempCancelationEvents.clear();
|
Vector<EventEntry*> cancelationEvents;
|
||||||
connection->inputState.synthesizeCancelationEvents(currentTime,
|
connection->inputState.synthesizeCancelationEvents(currentTime,
|
||||||
mTempCancelationEvents, options);
|
cancelationEvents, options);
|
||||||
|
|
||||||
if (!mTempCancelationEvents.isEmpty()) {
|
if (!cancelationEvents.isEmpty()) {
|
||||||
#if DEBUG_OUTBOUND_EVENT_DETAILS
|
#if DEBUG_OUTBOUND_EVENT_DETAILS
|
||||||
ALOGD("channel '%s' ~ Synthesized %d cancelation events to bring channel back in sync "
|
ALOGD("channel '%s' ~ Synthesized %d cancelation events to bring channel back in sync "
|
||||||
"with reality: %s, mode=%d.",
|
"with reality: %s, mode=%d.",
|
||||||
connection->getInputChannelName(), mTempCancelationEvents.size(),
|
connection->getInputChannelName(), cancelationEvents.size(),
|
||||||
options.reason, options.mode);
|
options.reason, options.mode);
|
||||||
#endif
|
#endif
|
||||||
for (size_t i = 0; i < mTempCancelationEvents.size(); i++) {
|
for (size_t i = 0; i < cancelationEvents.size(); i++) {
|
||||||
EventEntry* cancelationEventEntry = mTempCancelationEvents.itemAt(i);
|
EventEntry* cancelationEventEntry = cancelationEvents.itemAt(i);
|
||||||
switch (cancelationEventEntry->type) {
|
switch (cancelationEventEntry->type) {
|
||||||
case EventEntry::TYPE_KEY:
|
case EventEntry::TYPE_KEY:
|
||||||
logOutboundKeyDetailsLocked("cancel - ",
|
logOutboundKeyDetailsLocked("cancel - ",
|
||||||
|
|||||||
@@ -814,8 +814,6 @@ private:
|
|||||||
Queue<EventEntry> mInboundQueue;
|
Queue<EventEntry> mInboundQueue;
|
||||||
Queue<CommandEntry> mCommandQueue;
|
Queue<CommandEntry> mCommandQueue;
|
||||||
|
|
||||||
Vector<EventEntry*> mTempCancelationEvents;
|
|
||||||
|
|
||||||
void dispatchOnceInnerLocked(nsecs_t* nextWakeupTime);
|
void dispatchOnceInnerLocked(nsecs_t* nextWakeupTime);
|
||||||
|
|
||||||
// Enqueues an inbound event. Returns true if mLooper->wake() should be called.
|
// Enqueues an inbound event. Returns true if mLooper->wake() should be called.
|
||||||
|
|||||||
Reference in New Issue
Block a user