always pass the BufferQueue explicitely to consumers
Change-Id: I422e1a9d29e375cc09490097ad118ac66c401504
diff --git a/driver/rsdAllocation.cpp b/driver/rsdAllocation.cpp
index 2daafbe..5408c21 100644
--- a/driver/rsdAllocation.cpp
+++ b/driver/rsdAllocation.cpp
@@ -628,7 +628,8 @@
DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
// Configure CpuConsumer to be in asynchronous mode
- drv->cpuConsumer = new CpuConsumer(2, false);
+ sp<BufferQueue> bq = new BufferQueue();
+ drv->cpuConsumer = new CpuConsumer(bq, 2, false);
sp<IGraphicBufferProducer> bp = drv->cpuConsumer->getProducerInterface();
bp->incStrong(NULL);