diff options
| author | 2017-03-16 21:07:00 -0700 | |
|---|---|---|
| committer | 2017-03-17 15:46:02 -0700 | |
| commit | 021d92e6b92a877b9c8a2d17761be8c2251ad7f6 (patch) | |
| tree | 5652a15697cebebf587c1107868b8493353592b7 /libs/gui/ConsumerBase.cpp | |
| parent | 46f224d19d94324f5e09733c8a16a13a08dd9137 (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