OSDN Git Service

BufferQueue: add a check for the max acquired bufs
authorJamie Gennis <jgennis@google.com>
Wed, 29 Aug 2012 00:18:50 +0000 (17:18 -0700)
committerJamie Gennis <jgennis@google.com>
Fri, 31 Aug 2012 01:38:11 +0000 (18:38 -0700)
commit5e5efde7874a9fab650fd4b724ceef46db850470
treeded507b494376a307ac4eae961484620edaf1789
parent72f096fb1ad0a0deadbfac5f88627461905d38e8
BufferQueue: add a check for the max acquired bufs

This change adds an error check to ensure that consumers don't acquire more
buffers than the maximum that they set.

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