From 70982a5f95f68295244e5f6cc037c193713a5259 Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Mon, 11 Jan 2016 23:40:44 +0000 Subject: Revert "libgui: Remove custom BufferQueue allocators" This reverts commit acd56150573d3a6d449c0de01f93c6f269d121e3. Change-Id: I877f63a57fbddb4dcff71b3909b460ecc05981eb --- libs/gui/BufferQueue.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs/gui/BufferQueue.cpp') diff --git a/libs/gui/BufferQueue.cpp b/libs/gui/BufferQueue.cpp index 61da85f77c..ccbb5a25f3 100644 --- a/libs/gui/BufferQueue.cpp +++ b/libs/gui/BufferQueue.cpp @@ -62,13 +62,14 @@ void BufferQueue::ProxyConsumerListener::onSidebandStreamChanged() { } void BufferQueue::createBufferQueue(sp* outProducer, - sp* outConsumer) { + sp* outConsumer, + const sp& allocator) { LOG_ALWAYS_FATAL_IF(outProducer == NULL, "BufferQueue: outProducer must not be NULL"); LOG_ALWAYS_FATAL_IF(outConsumer == NULL, "BufferQueue: outConsumer must not be NULL"); - sp core(new BufferQueueCore()); + sp core(new BufferQueueCore(allocator)); LOG_ALWAYS_FATAL_IF(core == NULL, "BufferQueue: failed to create BufferQueueCore"); -- cgit v1.2.3-59-g8ed1b