diff options
author | 2014-03-12 10:17:20 -0700 | |
---|---|---|
committer | 2014-03-12 10:17:20 -0700 | |
commit | f522af7eb6048c2efae77d7b94960bc49c003e0e (patch) | |
tree | 166d856228efb8bee8ee37a7e5a6f9a01b0a0531 /include/gui/BufferQueue.h | |
parent | c9ed7d376882ff3c32913473fecd729c804dad0e (diff) |
BufferQueue: Allow returning interfaces as I*/Bn*
This adds a second createBufferQueue method that returns
sp<IGraphicBuffer*> interfaces instead of sp<BnGraphicBuffer*>, since
most clients don't actually need the Binderized versions (but some
might).
Change-Id: Iaf4f719c96ddb6f704afc75cf52be22588173e32
Diffstat (limited to 'include/gui/BufferQueue.h')
-rw-r--r-- | include/gui/BufferQueue.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/gui/BufferQueue.h b/include/gui/BufferQueue.h index f230e559e6..b0180a6900 100644 --- a/include/gui/BufferQueue.h +++ b/include/gui/BufferQueue.h @@ -106,14 +106,19 @@ public: wp<ConsumerListener> mConsumerListener; }; - static void createBufferQueue(sp<BnGraphicBufferProducer>* outProducer, - sp<BnGraphicBufferConsumer>* outConsumer, - const sp<IGraphicBufferAlloc>& allocator = NULL); - // BufferQueue manages a pool of gralloc memory slots to be used by // producers and consumers. allocator is used to allocate all the // needed gralloc buffers. BufferQueue(const sp<IGraphicBufferAlloc>& allocator = NULL); + + static void createBufferQueue(sp<BnGraphicBufferProducer>* outProducer, + sp<BnGraphicBufferConsumer>* outConsumer, + const sp<IGraphicBufferAlloc>& allocator = NULL); + + static void createBufferQueue(sp<IGraphicBufferProducer>* outProducer, + sp<IGraphicBufferConsumer>* outConsumer, + const sp<IGraphicBufferAlloc>& allocator = NULL); + virtual ~BufferQueue(); /* |