summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Pablo Ceballos <pceballos@google.com> 2016-02-05 13:39:27 -0800
committer Pablo Ceballos <pceballos@google.com> 2016-02-09 18:21:54 -0800
commit789a0c82cb370d6b82f401cc130af58c85802cbf (patch)
tree0d62a743da092ee5c95c92a07c4efbbb0e4cd43f /libs/gui/ConsumerBase.cpp
parentc5cec281654c5dee2273ce4bebd3a749c3a1119e (diff)
Fix Surface slot caching
- Now that it's possible to resize a BufferQueue while buffers are dequeued/acquired, it's no longer correct for Surface to clear its cache when the BufferQueue is resized since it must keep at least the currently dequeued buffers. - Add an onSlotsFreed callback to IProducerListener so that producers that wish to be notified about buffers being freed can do so. Note that this isn't currently used in Surface. - Review and fixup all the places where the producer/consumer listeners for freed buffers should be called. Change-Id: I4ab0c92bc69b75a3c072ddf5d74d78f941dba4c8
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions