summaryrefslogtreecommitdiff
path: root/libs/battery/LongArrayMultiStateCounterTest.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2021-08-30 15:31:08 -0700
committer Vishnu Nair <vishnun@google.com> 2021-09-03 17:03:08 +0000
commitc0fa0078cf9691dc34c7d8243f472426dca83e14 (patch)
tree56d9821e4ea97e527e951f587397231be0c938af /libs/battery/LongArrayMultiStateCounterTest.cpp
parent5c8b18c90806307939fd44c57855621ab004af8a (diff)
Surface: Release references to BlastBufferQueue and SurfaceControl on Surface#destroy
SurfaceView clients may hold on to surface references. In S this means they would extend the lifetime of the SurfaceControl resulting in "leaking" buffers until the references are cleared or the app is terminated. Fix this by calling a new destroy function on Surface which will explicitly remove references to the SurfaceControl and BBQ it holds. This is safe because SurfaceView controls the lifecycle of the Surface and knows when the Surface will become invalid. Once invalid, the Surface cannot become valid again. Test: repro steps in bug Bug: 198133921 Change-Id: I88fe98fa275dd76e20a5403c24bd2cb3bee5346d Merged-In: I88fe98fa275dd76e20a5403c24bd2cb3bee5346d
Diffstat (limited to 'libs/battery/LongArrayMultiStateCounterTest.cpp')
0 files changed, 0 insertions, 0 deletions