diff options
author | Jesse Hall <jessehall@google.com> | 2014-03-13 20:28:16 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-03-13 20:28:17 +0000 |
commit | 73ed82f809a40560fd3a6d53d18e5c846362d764 (patch) | |
tree | cbf5d50d6c3b7cd49b69c1d95b4f294f64cae8a7 /include/gui/BufferQueueProducer.h | |
parent | a3f519fe6ffb6ac358a3a8015beb94ef1b596ae5 (diff) | |
parent | 399184a4cd728ea1421fb0bc1722274a29e38f4a (diff) | |
download | frameworks_native-73ed82f809a40560fd3a6d53d18e5c846362d764.zip frameworks_native-73ed82f809a40560fd3a6d53d18e5c846362d764.tar.gz frameworks_native-73ed82f809a40560fd3a6d53d18e5c846362d764.tar.bz2 |
Merge "Add sideband streams to BufferQueue and related classes"
Diffstat (limited to 'include/gui/BufferQueueProducer.h')
-rw-r--r-- | include/gui/BufferQueueProducer.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/gui/BufferQueueProducer.h b/include/gui/BufferQueueProducer.h index 2eeb979..0013b0a 100644 --- a/include/gui/BufferQueueProducer.h +++ b/include/gui/BufferQueueProducer.h @@ -153,6 +153,18 @@ public: // connected to the specified producer API. virtual status_t disconnect(int api); + // Attaches a sideband buffer stream to the IGraphicBufferProducer. + // + // A sideband stream is a device-specific mechanism for passing buffers + // from the producer to the consumer without using dequeueBuffer/ + // queueBuffer. If a sideband stream is present, the consumer can choose + // whether to acquire buffers from the sideband stream or from the queued + // buffers. + // + // Passing NULL or a different stream handle will detach the previous + // handle if any. + virtual status_t setSidebandStream(const sp<NativeHandle>& stream); + private: // This is required by the IBinder::DeathRecipient interface virtual void binderDied(const wp<IBinder>& who); |