summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorVishnu Nair <vishnun@google.com>2021-08-30 15:01:29 -0700
committerVishnu Nair <vishnun@google.com>2021-09-08 18:03:47 +0000
commit43b0f37a70b36e0dd3b47352d3b5ecdd594e1551 (patch)
treebd695a69556065efc3db8b42fecf1536d3306291 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent67179b8e4f232752ddd088f582453341771b3943 (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: I5c7e43736f025fc0965eae2f19719ba40df3cb70 Merged-In: I5c7e43736f025fc0965eae2f19719ba40df3cb70
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions