diff options
author | Michael Wright <michaelwr@google.com> | 2013-10-10 18:54:12 -0700 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2013-10-10 18:54:12 -0700 |
commit | ad526f8505efe2ccd800e4665864b10bdae31e29 (patch) | |
tree | 92b1ec323c1e4b9397732bcd693d8f08e6ad06d7 /libs/input | |
parent | 98c197d826f95a82de41e16350f58a70a7ad23c6 (diff) | |
download | frameworks_native-ad526f8505efe2ccd800e4665864b10bdae31e29.zip frameworks_native-ad526f8505efe2ccd800e4665864b10bdae31e29.tar.gz frameworks_native-ad526f8505efe2ccd800e4665864b10bdae31e29.tar.bz2 |
Eliminate latency when resampling is disabled
Since the latency was introduced to avoid egregious errors during
resampling, remove it when we aren't resampling.
Change-Id: Ia8e9a9afb1e16212fec81a8c9c661c598e1b0ebf
Diffstat (limited to 'libs/input')
-rw-r--r-- | libs/input/InputTransport.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/input/InputTransport.cpp b/libs/input/InputTransport.cpp index d6507f4..9bd7fc6 100644 --- a/libs/input/InputTransport.cpp +++ b/libs/input/InputTransport.cpp @@ -376,13 +376,13 @@ InputConsumer::~InputConsumer() { bool InputConsumer::isTouchResamplingEnabled() { char value[PROPERTY_VALUE_MAX]; - int length = property_get("debug.inputconsumer.resample", value, NULL); + int length = property_get("ro.input.noresample", value, NULL); if (length > 0) { - if (!strcmp("0", value)) { + if (!strcmp("1", value)) { return false; } - if (strcmp("1", value)) { - ALOGD("Unrecognized property value for 'debug.inputconsumer.resample'. " + if (strcmp("0", value)) { + ALOGD("Unrecognized property value for 'ro.input.noresample'. " "Use '1' or '0'."); } } @@ -511,7 +511,7 @@ status_t InputConsumer::consumeBatch(InputEventFactoryInterface* factory, status_t result; for (size_t i = mBatches.size(); i-- > 0; ) { Batch& batch = mBatches.editItemAt(i); - if (frameTime < 0) { + if (frameTime < 0 || !mResampleTouch) { result = consumeSamples(factory, batch, batch.samples.size(), outSeq, outEvent); mBatches.removeAt(i); |