summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Alec Mouri <alecmouri@google.com> 2021-03-10 21:11:25 -0800
committer Alec Mouri <alecmouri@google.com> 2021-03-12 12:05:01 -0800
commit49da70dca9f9278cf6b8a2247d7b17630d2b0e52 (patch)
tree5df268b25781e300807d87a84eb18e0676bf35bd /libs/gui/BLASTBufferQueue.cpp
parent9b24e29ee6df2b9bc78644b0ef9a7fb1257ad7c4 (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
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions