summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Brian Stack <bstack@google.com> 2018-11-27 18:28:48 -0800
committer Brian Stack <bstack@google.com> 2018-11-28 16:19:34 -0800
commit93432adcde4bf5f95324373844ef299e2e3d6f6d (patch)
tree27e9c50ec669b8da08264957c3d7f72f5665c90b /libs/gui/LayerDebugInfo.cpp
parent7050439fd5a13e64fa51549583c2e7fa92f60453 (diff)
Prevent overflow when caching sensor events
Ensure that the boundary of the SensorEventConnection's event cache is not exceeded if more events need to be stored in the cache than there is currently free capacity for. Also resolves an issue where sensor events were not properly appended to the end of the cache if events had to be dropped to fit the new events. Bug: 119501435 Test: Builds, forced events to be written to the cache and ensured the cache never exceeded its limits. Change-Id: Ib3ed211dd42f47ea0e542687c07ed7106fcad1e7
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions