diff options
author | Vishnu Nair <vishnun@google.com> | 2021-03-23 10:42:15 -0700 |
---|---|---|
committer | Vishnu Nair <vishnun@google.com> | 2021-03-23 10:42:15 -0700 |
commit | 39534b9445950bb878a3e150f7990a7f683a916b (patch) | |
tree | 35fc2d1077c4a08227aff9fdaccadb2fde2f7256 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | ca921e3631b51fcb2dd4e10d272c080ae8a9c123 (diff) |
Allow extending the SurfacePackage lifetime
Caller may need to keep the SurfacePackage alive after attaching it
to a SurfaceView. We allow this by creating a copy of the
SurfaceControl inside the SurfacePackage. Since the native layer
handle is ref counted, this will keep the encapsulated Surface hierarchy
alive after it has been released by SurfaceView.
Bug: 182838860
Test: atest SurfaceControlViewHostTests
Change-Id: I49e228b561d7aca23691d683747edc5365fc4206
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions