commit | 39534b9445950bb878a3e150f7990a7f683a916b | [log] [tgz] |
---|---|---|
author | Vishnu Nair <vishnun@google.com> | Tue Mar 23 10:42:15 2021 -0700 |
committer | Vishnu Nair <vishnun@google.com> | Tue Mar 23 10:42:15 2021 -0700 |
tree | 35fc2d1077c4a08227aff9fdaccadb2fde2f7256 | |
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