summaryrefslogtreecommitdiffstats
path: root/include/gui/IGraphicBufferAlloc.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/IGraphicBufferAlloc.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/IGraphicBufferAlloc.h')
-rw-r--r--include/gui/IGraphicBufferAlloc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gui/IGraphicBufferAlloc.h b/include/gui/IGraphicBufferAlloc.h
index cee41d9..adc0b7f 100644
--- a/include/gui/IGraphicBufferAlloc.h
+++ b/include/gui/IGraphicBufferAlloc.h
@@ -38,6 +38,9 @@ public:
*/
virtual sp<GraphicBuffer> createGraphicBuffer(uint32_t w, uint32_t h,
PixelFormat format, uint32_t usage, status_t* error) = 0;
+#ifdef QCOM_BSP
+ virtual void setGraphicBufferSize(int size) = 0;
+#endif
};
// ----------------------------------------------------------------------------