Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 140c3a50 authored by wilsonshih's avatar wilsonshih
Browse files

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
parent 440faf35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment