summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Eino-Ville Talvala <etalvala@google.com> 2017-06-13 16:39:11 -0700
committer Eino-Ville Talvala <etalvala@google.com> 2017-06-13 16:39:11 -0700
commit2672decb92fa24ef012cbbd3690c120530fa3cd3 (patch)
treeb3cc68a6ce90b8aac7a1c2d86c3295154aad6ab8 /libs/gui/ConsumerBase.cpp
parent2563c0f3b0aa07309d42c0d739880884b8131080 (diff)
BufferQueueProducer: Call onBuffersReleased() in detachNextBuffer
Like detachBuffer(), detachNextBuffer() needs to inform the consumer, who generally has a cache of buffer items, that a buffer is no longer owned by the buffer queue. Otherwise the consumer layer can leak the buffer reference until consumer teardown/disconnect. Test: Camera CTS is fine, using a camera app shows correct memory behavior Bug: 62591036 Change-Id: I14c200d13e60dbbe21261343941f84fb786db117
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions