OSDN Git Service

Wait for buffers to drain
authorAndy McFadden <fadden@android.com>
Fri, 18 Oct 2013 22:50:24 +0000 (15:50 -0700)
committerAndy McFadden <fadden@android.com>
Fri, 18 Oct 2013 23:10:16 +0000 (23:10 +0000)
commit8507586903fa803abf535853a169913f2cf2e555
tree35f0c64f7476f707770ffd3803e3438d97dfbcad
parentdacd4159631865da1a02203fe5fa7c5f1339cda9
Wait for buffers to drain

When a BufferQueue producer disconnects and reconnects, we retain
the previously-queued buffers but empty the slots.  This allows
the number of queued buffers to grow without limit.  The low-memory
killer does not approve.

Bug 11069934

Change-Id: Ia2eaa954c7a3904b54209a3701dba01689e204d8
libs/gui/BufferQueue.cpp