summaryrefslogtreecommitdiff
path: root/libs/utils/ZipFileRO.cpp
diff options
context:
space:
mode:
author Jamie Gennis <jgennis@google.com> 2012-03-15 14:01:24 -0700
committer Jamie Gennis <jgennis@google.com> 2012-03-19 15:09:09 -0700
commitfa5b40ebb8923133df12dc70591bfe35b3f1c9b3 (patch)
tree8f8c8612361f0e1a9a1fdf73a78796df032c154b /libs/utils/ZipFileRO.cpp
parent9eeebe39807e65e29b3bb05e7d0e4094bdb564c8 (diff)
libgui: add BQ consumer buffer free notifications
This change adds a new callback for BufferQueue consumers to be notified when the BufferQueue frees some or all of its buffers. This is needed to retain SurfaceTexture behavior where all buffers would be freed when the producer disconnects. This change also modifies the SurfaceTextureGLToGLTest.EglDestroySurfaceUnrefsBuffers test to catch when the buffers are not freed. The implementation is a little complicated because it needs to avoid circular sp<> references across what will be a binder interface (so wp<> can't be used directly). It also needs to avoid the possibility of locking the BufferQueue and consumer (e.g. SurfaceTexture) mutexes in the wrong order. This change also includes a few additional fixes and test cleanups. Change-Id: I27b77d0af15cb4b135f4b63573f634f5f0da2182
Diffstat (limited to 'libs/utils/ZipFileRO.cpp')
0 files changed, 0 insertions, 0 deletions