Defer close snapshot's hardware buffer after remove snapshot from cache
The hardware buffer can be closed when either: 1. No transition is collecting/running, or 2. After a transition finish. This provides a simple protection because we have ensure the snapshot object is removed from cache, so either it's not used anymore, or it's used for a collecting transition. The queued transition won't able to get the snapshot because it was removed from cache. Flag: com.android.window.flags.safe_release_snapshot_aggressively Bug: 238206323 Bug: 402277988 Test: atest TaskSnapshotCacheTest TaskSnapshotLowResDisabledTest TaskSnapshotPersisterLoaderTest ActivitySnapshotControllerTests Change-Id: I549d9abdb2ca0d18a22cbc74cbf13fcdf3f4bb0a
Loading
Please register or sign in to comment