diff options
author | Jeff Brown <jeffbrown@google.com> | 2010-08-19 13:27:58 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-08-19 13:27:58 -0700 |
commit | 0014474569b8bb237f00fa692ab173678bff619e (patch) | |
tree | 8ea85a5c8a807e3c4a54c72d9f94dd91b6fdcf38 /libs | |
parent | bccfcd95d3cc4029c1ed8514d31436a857283873 (diff) | |
parent | 0f4d7bc1844af4934a0288e715a4f1350fd5dac2 (diff) | |
download | frameworks_base-0014474569b8bb237f00fa692ab173678bff619e.zip frameworks_base-0014474569b8bb237f00fa692ab173678bff619e.tar.gz frameworks_base-0014474569b8bb237f00fa692ab173678bff619e.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.cpp | 3 |
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; } |