OSDN Git Service

workaround a deadlock when taking screenshots into a surface
authorMathias Agopian <mathias@google.com>
Tue, 12 Mar 2013 00:59:59 +0000 (17:59 -0700)
committerMathias Agopian <mathias@google.com>
Tue, 12 Mar 2013 00:59:59 +0000 (17:59 -0700)
commitd2d5a64aa21cfc548c8c8333d1b36979e5e5a640
treefd20adbc883d1c9eef9c8024497ab2959d943368
parentdbca4a0ee5dac0b2f8d0ed4b1667adbf11363e35
workaround a deadlock when taking screenshots into a surface

When disconnecting from BufferQueue, we now drain the queue
except the head (which means in the screenshot case we won't
have to block, but we might not have a buffer to show, this
will appear as an error in the log).

Bug: 8362363
Change-Id: If80989aac3c917beea2ebddf3cbb502849d394da
libs/gui/BufferQueue.cpp