summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceControl.cpp
diff options
context:
space:
mode:
author Jorim Jaggi <jjaggi@google.com> 2021-06-04 17:25:25 +0200
committer Jorim Jaggi <jjaggi@google.com> 2021-06-15 21:19:50 +0200
commit1283885c6478edabb3bcdf26a971818a9f510d40 (patch)
tree9429d755ab5b4f4805fba7fea6cd48df464efde8 /libs/gui/SurfaceControl.cpp
parent266ca8e17bdff757c3b76c0cb990a1af0ec550be (diff)
Ensure reportFrameMetrics not being called on deleted instance
Since onSurfaceStatsAvailable gets called on binder-thread, we need to ensure that instance doesn't get released while onSurfaceStatsAvailable is calling reportFrameMetrics. We do this by introducing a lock for register/unregister/callback, such than when unregister completes, there won't be any "hanging" callback anymore such that the callback can't be called anymore on deleted instances. Test: Boots Bug: 188934435 Change-Id: I73e2d4b04cc74a152054cf7620a5c541683cb5e6
Diffstat (limited to 'libs/gui/SurfaceControl.cpp')
0 files changed, 0 insertions, 0 deletions