diff options
author | Ramkumar Radhakrishnan <ramkumar@codeaurora.org> | 2012-11-06 20:44:04 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-03-10 22:55:58 -0700 |
commit | bbef29560e318cbdb0d4107b7fce6a2a64fd641b (patch) | |
tree | fa25faa6fdf12cc6de6dd74b24ca9405088cc891 /include/gui/SurfaceTextureClient.h | |
parent | 31152b94cd0471a3853fb658e9aff507d4eec384 (diff) | |
download | frameworks_native-bbef29560e318cbdb0d4107b7fce6a2a64fd641b.zip frameworks_native-bbef29560e318cbdb0d4107b7fce6a2a64fd641b.tar.gz frameworks_native-bbef29560e318cbdb0d4107b7fce6a2a64fd641b.tar.bz2 |
libgui: Add support to update buffer geometry.
Add native window properties NATIVE_WINDOW_UPDATE_BUFFERS_GEOMETRY
to the perform function of SurfaceTextureClient and SurfaceTexture
to update the width, height and format of the buffer dynamically
from the client before queue buffer call.
Change-Id: I62447fcf523b507d534085cd0835f55a978c4ead
Diffstat (limited to 'include/gui/SurfaceTextureClient.h')
-rw-r--r-- | include/gui/SurfaceTextureClient.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gui/SurfaceTextureClient.h b/include/gui/SurfaceTextureClient.h index 108126d..f2b523d 100644 --- a/include/gui/SurfaceTextureClient.h +++ b/include/gui/SurfaceTextureClient.h @@ -94,6 +94,7 @@ private: int dispatchSetPostTransformCrop(va_list args); int dispatchSetUsage(va_list args); #ifdef QCOM_BSP + int dispatchUpdateBuffersGeometry(va_list args); int dispatchSetBuffersSize(va_list args); #endif int dispatchLock(va_list args); @@ -107,6 +108,7 @@ protected: virtual int query(int what, int* value) const; virtual int setSwapInterval(int interval); #ifdef QCOM_BSP + virtual int updateBuffersGeometry(int w, int h, int f); virtual int setBuffersSize(int size); #endif virtual int lockBuffer_DEPRECATED(ANativeWindowBuffer* buffer); |