Chinmay Garde 0e83a760ef [Impeller] Wait for the previous AHB texture to be fully recyclable. (flutter/engine#52588)
The Android surface transaction completion handler documentation states:

```
Buffers which are replaced or removed from the scene in the transaction
invoking this callback may be reused after this point.
```

However, this is NOT sufficient. One also needs to be obtain the previous release fence and perform a wait for the buffer to be safely reusable.

This patch adds a GPU side wait for this fence using available extensions.

Fixes https://github.com/flutter/flutter/issues/147758
2024-05-07 18:33:50 +00:00
..