summaryrefslogtreecommitdiffstats
path: root/include/gui/BufferQueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gui/BufferQueue.h')
-rw-r--r--include/gui/BufferQueue.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/gui/BufferQueue.h b/include/gui/BufferQueue.h
index 9e265ba..02598b0 100644
--- a/include/gui/BufferQueue.h
+++ b/include/gui/BufferQueue.h
@@ -148,6 +148,16 @@ public:
// The default mode is asynchronous.
virtual status_t setSynchronousMode(bool enabled);
+#ifdef QCOM_BSP
+ // setBufferSize enables us to specify user defined sizes for the buffers
+ // that need 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);
+#endif
+
// connect attempts to connect a producer client API to the BufferQueue.
// This must be called before any other ISurfaceTexture methods are called
// except for getAllocator.