OSDN Git Service

BuffferQueue disconnect is now always asynchrnous
authorMathias Agopian <mathias@google.com>
Thu, 18 Jul 2013 22:55:03 +0000 (15:55 -0700)
committerMathias Agopian <mathias@google.com>
Fri, 19 Jul 2013 05:28:18 +0000 (22:28 -0700)
commita3fbda3cef04d51a35a3eb64b2f744a989800856
tree6291dcc9a67f5c140c14dea94190e51d1ab9b125
parent595264f1af12e25dce57d7c5b1d52ed86ac0d0c9
BuffferQueue disconnect is now always asynchrnous

we tag queued buffers with the "bufferqueue cannot block" flag
and use that bit to discard a buffer in the queue by new ones
comming in. this allows us to remove the buffer queue drain in
disconnect while maintaining the right behaviour if it gets
connected again (since each buffer remembers how it was enqueued).

Change-Id: I1e703d363a687b70b19ba49cef32213116e8bd3f
include/gui/BufferQueue.h
libs/gui/BufferQueue.cpp
libs/gui/tests/Surface_test.cpp