summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-08-19 13:27:58 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-08-19 13:27:58 -0700
commit2008e3efde16e23a9e70c7b8dd084f1d316a70f6 (patch)
tree27f9f412ed62bbb4bd5cd7085ab65e5c13949ded /libs
parentd6a9447cbfaa92cbf32c66bb5119a189534176d4 (diff)
parent869347fc62bcb1f1e5ccdd403c952b21bc9b1ab7 (diff)
downloadframeworks_native-2008e3efde16e23a9e70c7b8dd084f1d316a70f6.zip
frameworks_native-2008e3efde16e23a9e70c7b8dd084f1d316a70f6.tar.gz
frameworks_native-2008e3efde16e23a9e70c7b8dd084f1d316a70f6.tar.bz2
Merge "Make the throttling more sensitive to end-to-end latency." into gingerbread
Diffstat (limited to 'libs')
-rw-r--r--libs/ui/InputDispatcher.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ui/InputDispatcher.cpp b/libs/ui/InputDispatcher.cpp
index ce616a4..e35050c 100644
--- a/libs/ui/InputDispatcher.cpp
+++ b/libs/ui/InputDispatcher.cpp
@@ -201,7 +201,8 @@ void InputDispatcher::dispatchOnce() {
}
#endif
- mThrottleState.lastEventTime = currentTime;
+ mThrottleState.lastEventTime = entry->eventTime < currentTime
+ ? entry->eventTime : currentTime;
mThrottleState.lastDeviceId = deviceId;
mThrottleState.lastSource = source;
}