summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx/GraphicBufferSource.h
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2014-03-12 15:07:30 -0700
committerDan Stoza <stoza@google.com>2014-03-12 16:58:54 -0700
commit5205977929c8a63d3bba026c6bd7b4cc1e236627 (patch)
tree0a1801cffe10b082961f01c9844a325205d0cd04 /media/libstagefright/omx/GraphicBufferSource.h
parentfca092d953e04c7169242200f0ddb914a9f54ea4 (diff)
downloadframeworks_av-5205977929c8a63d3bba026c6bd7b4cc1e236627.zip
frameworks_av-5205977929c8a63d3bba026c6bd7b4cc1e236627.tar.gz
frameworks_av-5205977929c8a63d3bba026c6bd7b4cc1e236627.tar.bz2
Remove deprecated BufferQueue constructor
Bug: 13415624 Change-Id: I1a824d09ce582ee54753683d30cdc23813c13b6b
Diffstat (limited to 'media/libstagefright/omx/GraphicBufferSource.h')
-rw-r--r--media/libstagefright/omx/GraphicBufferSource.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/media/libstagefright/omx/GraphicBufferSource.h b/media/libstagefright/omx/GraphicBufferSource.h
index 757edc8..a70cc1a 100644
--- a/media/libstagefright/omx/GraphicBufferSource.h
+++ b/media/libstagefright/omx/GraphicBufferSource.h
@@ -61,7 +61,7 @@ public:
// Returns the handle to the producer side of the BufferQueue. Buffers
// queued on this will be received by GraphicBufferSource.
sp<IGraphicBufferProducer> getIGraphicBufferProducer() const {
- return mBufferQueue;
+ return mProducer;
}
// This is called when OMX transitions to OMX_StateExecuting, which means
@@ -210,8 +210,11 @@ private:
bool mSuspended;
- // We consume graphic buffers from this.
- sp<BufferQueue> mBufferQueue;
+ // Our BufferQueue interfaces. mProducer is passed to the producer through
+ // getIGraphicBufferProducer, and mConsumer is used internally to retrieve
+ // the buffers queued by the producer.
+ sp<IGraphicBufferProducer> mProducer;
+ sp<IGraphicBufferConsumer> mConsumer;
// Number of frames pending in BufferQueue that haven't yet been
// forwarded to the codec.