diff options
author | 2014-04-11 17:57:11 +0000 | |
---|---|---|
committer | 2014-04-11 17:57:12 +0000 | |
commit | fd34b65f717b84fa06d8c37f41b070f41d0ad3a3 (patch) | |
tree | 80315086e606f5184add4bab55c28e7687ccc931 /include/gui/BufferQueue.h | |
parent | 88a34b2f4351fe58b042f11af08ffd967ef7ce4c (diff) | |
parent | f0eaf25e9247edf4d124bedaeb863f7abdf35a3e (diff) |
Merge "BufferQueue: Add producer buffer-released callback"
Diffstat (limited to 'include/gui/BufferQueue.h')
-rw-r--r-- | include/gui/BufferQueue.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/gui/BufferQueue.h b/include/gui/BufferQueue.h index 99147cd4fe..da876ec6e2 100644 --- a/include/gui/BufferQueue.h +++ b/include/gui/BufferQueue.h @@ -228,16 +228,8 @@ public: // will usually be the one obtained from dequeueBuffer. virtual void cancelBuffer(int buf, const sp<Fence>& fence); - // connect attempts to connect a producer API to the BufferQueue. This - // must be called before any other IGraphicBufferProducer methods are - // called except for getAllocator. A consumer must already be connected. - // - // This method will fail if connect was previously called on the - // BufferQueue and no corresponding disconnect call was made (i.e. if - // it's still connected to a producer). - // - // APIs are enumerated in window.h (e.g. NATIVE_WINDOW_API_CPU). - virtual status_t connect(const sp<IBinder>& token, + // See IGraphicBufferProducer::connect + virtual status_t connect(const sp<IProducerListener>& listener, int api, bool producerControlledByApp, QueueBufferOutput* output); // disconnect attempts to disconnect a producer API from the BufferQueue. |