OSDN Git Service

make sure BufferQueue releases newly acquired buffers on failures
authorMathias Agopian <mathias@google.com>
Fri, 18 May 2012 23:50:58 +0000 (16:50 -0700)
committerMathias Agopian <mathias@google.com>
Fri, 18 May 2012 23:50:58 +0000 (16:50 -0700)
commit7e477bfe11f8bb31622353b64e85721df3cf9702
tree63c57cd819b0ea00c595674c230f8232ab3cf17d
parentf899e4113a5b5545cd91b4625514d0ab0d33751c
make sure BufferQueue releases newly acquired buffers on failures

this prevents SurfaceTexture producer to hang in dequeueBuffer()
when something goes wrong in the consumer.
only the consumer gets an error and the current frame is kept
instead of the new one. the producer is unaware of the problem.

Bug: 6476587
Change-Id: Ie6db5526632aabc3e60229b93dfe29c19491ade4
libs/gui/SurfaceTexture.cpp