commit | ae3c3682333f25e860fe54e2bae3599bb466cdb6 | [log] [tgz] |
---|---|---|
author | Dan Stoza <stoza@google.com> | Fri Apr 18 15:43:35 2014 -0700 |
committer | Dan Stoza <stoza@google.com> | Fri Apr 18 15:50:43 2014 -0700 |
tree | ebfb57a146108102f65357f022a3770c073a0c8a | |
parent | 7f605bd4c09e2b086e69751491e25e98f4a0eb98 [diff] |
BufferQueue: Guard against unbounded queue growth Adds logic to dequeueBuffer that blocks if there are currently too many buffers in the queue. This prevents unbounded growth around times where the slots are cleared but the queue is not (e.g., during rapid connect/disconnect or setBufferCount activity). This replaces the fix from ag/377958 in a more general way. Bug: 11293214 Change-Id: Ieb7adfcd076ff7ffe3d4d369397b2c29cf5099c3