From 11f14871db607718090ae6aa2e5dee3f490b8830 Mon Sep 17 00:00:00 2001 From: Antoine Labour Date: Fri, 25 Jul 2014 18:14:42 -0700 Subject: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/gui/BufferQueueProducer.cpp b/libs/gui/BufferQueueProducer.cpp index cdc810d..a53775f 100644 --- a/libs/gui/BufferQueueProducer.cpp +++ b/libs/gui/BufferQueueProducer.cpp @@ -890,7 +890,7 @@ void BufferQueueProducer::allocateBuffers(bool async, uint32_t width, continue; } - freeSlots.push_front(slot); + freeSlots.push_back(slot); } } -- cgit v1.1