replicant-frameworks_native/libs/gui
Mathias Agopian c04f153353 Fix a bug where setgeometry couldn't be undone
This change the binder protocol between SurfaceTextureClient
and SurfaceTexture. dequeueBuffer() now takes the requested
parameters for the buffer. SurfaceTexture decides if the
buffer needs to be reallocated and does the allocation
if needed. In that case it returns BUFFER_NEEDS_REALLOCATION
to tell SurfaceTextureClient that it needs to call
requestBuffer (which all parameters have been removed) to
acquire a pointer to the buffer.

dequeueBuffer and requestBuffer could be folded into a single
IPC call, but we chose to optimize the case where buffers are
not created and avoid some complexity in the marshalling code.

Change-Id: I097a7f6f40a3491e10f3f3742eab33999286c304
2011-05-11 18:01:51 -07:00
..
tests frameworks/base: android_native_buffer_t -> ANativeWindowBuffer 2011-05-03 16:40:14 -07:00
Android.mk libgui: enable tests in the 'tests' build. 2011-04-26 17:26:37 -07:00
IGraphicBufferAlloc.cpp Fix a GraphicBuffer leak in SurfaceTexture 2011-04-08 19:28:04 -07:00
ISensorEventConnection.cpp new SensorService 2010-07-19 17:57:29 -07:00
ISensorServer.cpp new SensorService 2010-07-19 17:57:29 -07:00
ISurface.cpp merge libsurfaceflinger_client into libgui 2011-03-25 18:42:40 -07:00
ISurfaceComposer.cpp merge libsurfaceflinger_client into libgui 2011-03-25 18:42:40 -07:00
ISurfaceComposerClient.cpp Get rid of the "pid" parameter from createSurface 2011-04-20 14:26:11 -07:00
ISurfaceTexture.cpp Fix a bug where setgeometry couldn't be undone 2011-05-11 18:01:51 -07:00
LayerState.cpp merge libsurfaceflinger_client into libgui 2011-03-25 18:42:40 -07:00
Sensor.cpp Added SensorManager.getMinDelay() 2010-07-29 18:18:00 -07:00
SensorChannel.cpp first step at implementing the native sensor support 2010-07-13 22:21:56 -07:00
SensorEventQueue.cpp Fix typo which causes sensors to fail miserably 2010-09-16 21:41:13 -07:00
SensorManager.cpp new SensorService 2010-07-19 17:57:29 -07:00
SharedBufferStack.cpp merge libsurfaceflinger_client into libgui 2011-03-25 18:42:40 -07:00
Surface.cpp frameworks/base: android_native_buffer_t -> ANativeWindowBuffer 2011-05-03 16:40:14 -07:00
SurfaceComposerClient.cpp Get rid of the "pid" parameter from createSurface 2011-04-20 14:26:11 -07:00
SurfaceTexture.cpp Fix a bug where setgeometry couldn't be undone 2011-05-11 18:01:51 -07:00
SurfaceTextureClient.cpp Fix a bug where setgeometry couldn't be undone 2011-05-11 18:01:51 -07:00