summaryrefslogtreecommitdiffstats
path: root/include/gui/BufferQueue.h
diff options
context:
space:
mode:
authorRamkumar Radhakrishnan <ramkumar@codeaurora.org>2012-11-07 11:30:19 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-03-10 22:55:44 -0700
commit31152b94cd0471a3853fb658e9aff507d4eec384 (patch)
tree041a5ab856784ee1eb4bb6b49d738847658c33f8 /include/gui/BufferQueue.h
parentaed9f3c81b67ff72b92a9de18de4ff38af523e54 (diff)
downloadframeworks_native-31152b94cd0471a3853fb658e9aff507d4eec384.zip
frameworks_native-31152b94cd0471a3853fb658e9aff507d4eec384.tar.gz
frameworks_native-31152b94cd0471a3853fb658e9aff507d4eec384.tar.bz2
Add support for custom buffer sizes.
Add native window properties NATIVE_WINDOW_SET_BUFFERS_SIZE to the perform function of SurfaceTextureClient to set the user defined size of graphic buffers. Change-Id: I1dc2203990a3641fbb9ddab9a86f7e9017f05270
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.