diff options
Diffstat (limited to 'include/gui/ISurfaceTexture.h')
-rw-r--r-- | include/gui/ISurfaceTexture.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/gui/ISurfaceTexture.h b/include/gui/ISurfaceTexture.h index ae7c5c2..58345a0 100644 --- a/include/gui/ISurfaceTexture.h +++ b/include/gui/ISurfaceTexture.h @@ -34,6 +34,22 @@ namespace android { class SurfaceTextureClient; +/* + * This class defines an interface that is implemented by classes that + * produce buffers of graphics data. For example, a class that decodes + * video for playback might use this to provide frames. This is + * typically done indirectly, through SurfaceTextureClient. + * + * The underlying mechanism is a BufferQueue. In normal operation, the + * producer calls dequeueBuffer() to get an empty buffer, fills it with + * data, then calls queueBuffer() to make it available to the consumer. + * + * The BnSurfaceTexture and BpSurfaceTexture classes provide the Binder + * IPC implementation. + * + * TODO: rename to IGraphicBufferProducer (IBufferProducer? + * IBufferQueueProducer?) + */ class ISurfaceTexture : public IInterface { public: |