summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Kweku Adams <kwekua@google.com> 2022-11-04 20:09:07 +0000
committer Kweku Adams <kwekua@google.com> 2022-11-07 17:02:59 +0000
commitc1a4a0dbfa06a2e09e64499ad5de7451f3ee55f4 (patch)
tree13157c869bd3b63d38dde2cf20cb60b6e1c6e2f4 /libs/input/PointerController.cpp
parent01cd6f81a88f46627eba593361feea721e7f93f6 (diff)
Use a single lock and add a flag.
Using separate locks adds a little bit of overhead to the get method. Switch to a single lock to minimize the performance cost. Also add a control flag to disable caching in the future, if so desired. Bug: 257054989 Test: atest CorePerfTests:AccountManagerPerfTest Change-Id: I5bbcc54f28cbe3c434995af8b3452debfc68c4ee
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions