diff options
author | Mathias Agopian <mathias@google.com> | 2013-08-02 02:15:17 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-08-06 20:05:46 +0000 |
commit | 126adc5dee94b157b0040ab3c543af02d4277990 (patch) | |
tree | c027691ebb23eb9c9a4764d39018320b781257bf | |
parent | 2644c42ddc16ef2515fc2e566ad2f60f1a1b47c6 (diff) | |
download | rs-126adc5dee94b157b0040ab3c543af02d4277990.tar.gz |
separate BufferQueue's producer and consumer sides
Bug: 9265647
Change-Id: I37edf2d973a091c13563a5d019da0122d2000c18
-rw-r--r-- | driver/rsdAllocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/rsdAllocation.cpp b/driver/rsdAllocation.cpp index 4ab2b57a..1d34f088 100644 --- a/driver/rsdAllocation.cpp +++ b/driver/rsdAllocation.cpp @@ -630,7 +630,7 @@ void* rsdAllocationGetSurface(const Context *rsc, const Allocation *alloc) { // Configure CpuConsumer to be in asynchronous mode sp<BufferQueue> bq = new BufferQueue(); drv->cpuConsumer = new CpuConsumer(bq, 2, false); - sp<IGraphicBufferProducer> bp = drv->cpuConsumer->getProducerInterface(); + sp<IGraphicBufferProducer> bp = bq; bp->incStrong(NULL); drv->mBufferListener = new DrvAllocation::NewBufferListener(); |