From cc2e717f1d43a836d1abdee06bcb946416d06fd6 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Tue, 17 Aug 2010 16:48:25 -0700 Subject: Optimize EventHub reads. Change-Id: Id7d09c0a6e5c741c1e29becd2b6560772c5ff372 --- include/ui/EventHub.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 -- cgit v1.1