summaryrefslogtreecommitdiff
path: root/libs/input/Resampler.cpp
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-09-27 01:08:02 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-09-27 01:08:02 +0000
commitd0285f45ae575a039a787b7a7486b7686053a34c (patch)
treea2675b357fcfbd932504ecfe5ae5634a0793a36f /libs/input/Resampler.cpp
parentbdc0fb711b06d3ad01f921b5cd54637bbb9956e9 (diff)
parente37f8346c62551dac1919fad4cd60a707d27e6a2 (diff)
Merge "Add multiple device resampling support to InputConsumerNoResampling with tests" into main
Diffstat (limited to 'libs/input/Resampler.cpp')
-rw-r--r--libs/input/Resampler.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/libs/input/Resampler.cpp b/libs/input/Resampler.cpp
index 51fadf8ec1..328fa684f6 100644
--- a/libs/input/Resampler.cpp
+++ b/libs/input/Resampler.cpp
@@ -247,11 +247,6 @@ nanoseconds LegacyResampler::getResampleLatency() const {
void LegacyResampler::resampleMotionEvent(nanoseconds frameTime, MotionEvent& motionEvent,
const InputMessage* futureSample) {
- if (mPreviousDeviceId && *mPreviousDeviceId != motionEvent.getDeviceId()) {
- mLatestSamples.clear();
- }
- mPreviousDeviceId = motionEvent.getDeviceId();
-
const nanoseconds resampleTime = frameTime - RESAMPLE_LATENCY;
updateLatestSamples(motionEvent);