OSDN Git Service

BufferQueueProducer: fix which slot gets pre-allocated
authorAntoine Labour <piman@google.com>
Sat, 26 Jul 2014 01:14:42 +0000 (18:14 -0700)
committerAntoine Labour <piman@google.com>
Sat, 26 Jul 2014 01:47:25 +0000 (18:47 -0700)
commit11f14871db607718090ae6aa2e5dee3f490b8830
tree4cdd0f7eaa5475c60caf0734be59822a502b8705
parentc268068c55afaaa441fda903b1b84a5b5c8a0a01
BufferQueueProducer: fix which slot gets pre-allocated

Commit 78014f32da6d0ebf52fb34ebb7663863000520a0 introduced a bug that
made us pre-allocate buffers into the last available free slots instead
of the first available ones. This in turn caused more re-allocations,
and possibly triggered driver bugs.

Change-Id: Ic4a70e676b4f2bbb054bc873be62ced26e3099a0
libs/gui/BufferQueueProducer.cpp