commit | 49da70dca9f9278cf6b8a2247d7b17630d2b0e52 | [log] [tgz] |
---|---|---|
author | Alec Mouri <alecmouri@google.com> | Wed Mar 10 21:11:25 2021 -0800 |
committer | Alec Mouri <alecmouri@google.com> | Fri Mar 12 12:05:01 2021 -0800 |
tree | 5df268b25781e300807d87a84eb18e0676bf35bd | |
parent | 9b24e29ee6df2b9bc78644b0ef9a7fb1257ad7c4 [diff] |
Don't leak flattened buffers from cached sets. unbindExternalTextureBuffer needs to be called when a CachedSet is destroyed. Otherwise GPU textures are leaked. This is implemented as a Texture RAII instead of modifying CachedSet's destructor directly, because that's closer to the long-term buffer lifecycle solution for RenderEngine. Bug: 182415252 Test: observe dumpsys SurfaceFlinger while playing youtube video Change-Id: Ib2d0a497621c121021189827cdc64b11ce9ef458