summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Jiwen 'Steve' Cai <jwcai@google.com> 2017-03-16 21:07:00 -0700
committer Jiwen 'Steve' Cai <jwcai@google.com> 2017-03-17 15:46:02 -0700
commit021d92e6b92a877b9c8a2d17761be8c2251ad7f6 (patch)
tree5652a15697cebebf587c1107868b8493353592b7 /libs/gui/ConsumerBase.cpp
parent46f224d19d94324f5e09733c8a16a13a08dd9137 (diff)
BufferItemConsumer: Add onBufferFreedListener
This callback can reliably notify its listener when a GraphicBuffer is being freed at the consumer end of a BufferQueue. This is extremely useful when user of BufferItemConsumer caches the GraphicBuffer, so they can listen to this callback and clean up resource properly. Bug: 35114769 Test: Built system, flash marlin (should have no functional change as the listener is optional). Change-Id: I591cfd3ece697b1b4fb3efbeff987c7960422d24
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions