commit | 021d92e6b92a877b9c8a2d17761be8c2251ad7f6 | [log] [tgz] |
---|---|---|
author | Jiwen 'Steve' Cai <jwcai@google.com> | Thu Mar 16 21:07:00 2017 -0700 |
committer | Jiwen 'Steve' Cai <jwcai@google.com> | Fri Mar 17 15:46:02 2017 -0700 |
tree | 5652a15697cebebf587c1107868b8493353592b7 | |
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