diff options
Diffstat (limited to 'include/gui/ISurfaceTexture.h')
-rw-r--r-- | include/gui/ISurfaceTexture.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/gui/ISurfaceTexture.h b/include/gui/ISurfaceTexture.h index ae7c5c2..f0beab6 100644 --- a/include/gui/ISurfaceTexture.h +++ b/include/gui/ISurfaceTexture.h @@ -164,6 +164,16 @@ public: // The default mode is asynchronous. virtual status_t setSynchronousMode(bool enabled) = 0; +#ifdef QCOM_BSP + // setBufferSize enables to specify the user defined size of the buffer + // that needs to be allocated by surfaceflinger for its client. This is + // useful for cases where the client doesn't want the gralloc to calculate + // buffer size. client should reset this value to 0, if it wants gralloc to + // calculate the size for the buffer. this will take effect from next + // dequeue buffer. + virtual status_t setBuffersSize(int size) = 0; +#endif + // connect attempts to connect a client API to the SurfaceTexture. This // must be called before any other ISurfaceTexture methods are called except // for getAllocator. |