summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-08-17 19:41:46 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-08-17 19:41:46 -0700
commit3922484d7458a4ab72fc1ca8952a0776dd1c7d20 (patch)
tree3ce28c2f78be5623bb623438dbb334e2f0561543 /include
parent8eac20eacd088793547c56e14d602b28d62fb278 (diff)
parentcc2e717f1d43a836d1abdee06bcb946416d06fd6 (diff)
downloadframeworks_base-3922484d7458a4ab72fc1ca8952a0776dd1c7d20.zip
frameworks_base-3922484d7458a4ab72fc1ca8952a0776dd1c7d20.tar.gz
frameworks_base-3922484d7458a4ab72fc1ca8952a0776dd1c7d20.tar.bz2
Merge "Optimize EventHub reads." into gingerbread
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