summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-08-17 16:48:25 -0700
committerJeff Brown <jeffbrown@google.com>2010-08-17 19:40:26 -0700
commit827630744a5bf05d25c2fa1fb7c53b9ab2b94a69 (patch)
tree285646f6f1c1abdbf1c143b4aabbfc7e82f6fb59 /include
parentf9ad410f1478aec0ed7267b8ea87befac38c010e (diff)
downloadframeworks_native-827630744a5bf05d25c2fa1fb7c53b9ab2b94a69.zip
frameworks_native-827630744a5bf05d25c2fa1fb7c53b9ab2b94a69.tar.gz
frameworks_native-827630744a5bf05d25c2fa1fb7c53b9ab2b94a69.tar.bz2
Optimize EventHub reads.
Change-Id: Id7d09c0a6e5c741c1e29becd2b6560772c5ff372
Diffstat (limited to 'include')
-rw-r--r--include/ui/EventHub.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ui/EventHub.h b/include/ui/EventHub.h
index dab35b3..3132941 100644
--- a/include/ui/EventHub.h
+++ b/include/ui/EventHub.h
@@ -266,6 +266,12 @@ private:
#ifdef EV_SW
int32_t mSwitches[SW_MAX + 1];
#endif
+
+ static const int INPUT_BUFFER_SIZE = 64;
+ struct input_event mInputBufferData[INPUT_BUFFER_SIZE];
+ int32_t mInputBufferIndex;
+ int32_t mInputBufferCount;
+ int32_t mInputDeviceIndex;
};
}; // namespace android