diff options
author | Vishnu Nair <vishnun@google.com> | 2019-06-25 17:29:27 -0700 |
---|---|---|
committer | Vishnu Nair <vishnun@google.com> | 2019-06-25 17:31:11 -0700 |
commit | 4bcd152a3a3178c0c0c4b30a5da729ea8bbfcfed (patch) | |
tree | d437cd364c0f4f6c91b85d18c8b97dfc79a2f2a3 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 82e696d5d3f009eb1475202acffaa410ac0e3ec8 (diff) |
Remove SurfaceControl#getHandle from JAVA apis 1/2
Holding on to a reference of the handle in Java will keep the server-side surface alive until
the reference is removed by GC. This may cause surfaces to be kept alive longer than necessary.
Instead hold on the surface control and call SurfaceControl#release which will release the local
reference to the server-side surface.
Bug: 136004147
Test: go/wm-smoke
Test: gesture nav sanity tests
Test: atest CompositionSamplingListenerTest
Change-Id: Iab33680746c8f48c28783e6a2a13c9ac7ae04980
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions