summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueue.cpp
diff options
context:
space:
mode:
author Chia-I Wu <olv@google.com> 2017-03-13 21:02:24 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2017-03-13 21:02:25 +0000
commit975e49a2ae848ef7d2b9d9ad8ea1afad656f037b (patch)
tree3ae6187e163149356641495cef385b1e8a454ddf /libs/gui/BufferQueue.cpp
parent4c5441be9bf5aa87042cfb3653733b008a51efdb (diff)
parent527747dce1ab4714bd424e5c1a25ebad3506c2cb (diff)
Merge "Revert "get rid of IGraphicBufferAlloc""
Diffstat (limited to 'libs/gui/BufferQueue.cpp')
-rw-r--r--libs/gui/BufferQueue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gui/BufferQueue.cpp b/libs/gui/BufferQueue.cpp
index 41512127f2..13692eb982 100644
--- a/libs/gui/BufferQueue.cpp
+++ b/libs/gui/BufferQueue.cpp
@@ -79,13 +79,14 @@ void BufferQueue::ProxyConsumerListener::addAndGetFrameTimestamps(
void BufferQueue::createBufferQueue(sp<IGraphicBufferProducer>* outProducer,
sp<IGraphicBufferConsumer>* outConsumer,
+ const sp<IGraphicBufferAlloc>& allocator,
bool consumerIsSurfaceFlinger) {
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<BufferQueueCore> core(new BufferQueueCore());
+ sp<BufferQueueCore> core(new BufferQueueCore(allocator));
LOG_ALWAYS_FATAL_IF(core == NULL,
"BufferQueue: failed to create BufferQueueCore");