replicant-frameworks_native/libs/gui
Mathias Agopian 4cb18881b5 Fix a GraphicBuffer leak in SurfaceTexture
This leak was intentional, it was there to deal with the fact that
some gralloc implementations don't track buffer handles with
file-descriptors so buffers needed to stay alive until there were
registered, which is not guaranteed by binder transactions.

In this new implementation, we use a small BBinder holding a
reference to the buffer, which with tuck into the parcel. This forces
the reference to stay alive until the parcel is destroyed, which
is guaranteed (by construction) to happen after the buffer is
registered.

this allows the public facing API to not expose the previous hack.

Change-Id: I1dd6cd83679a2b7457ad628169e2851acc027143
2011-04-08 19:28:04 -07:00
..
tests SurfaceTexture can now force the client to request a buffer 2011-04-01 14:43:35 -07:00
Android.mk merge libsurfaceflinger_client into libgui 2011-03-25 18:42:40 -07:00
IGraphicBufferAlloc.cpp Fix a GraphicBuffer leak in SurfaceTexture 2011-04-08 19:28:04 -07:00
ISensorEventConnection.cpp
ISensorServer.cpp
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 merge libsurfaceflinger_client into libgui 2011-03-25 18:42:40 -07:00
ISurfaceTexture.cpp Add support for timestamps into SurfaceTexture. 2011-03-17 13:10:03 -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
SensorEventQueue.cpp Fix typo which causes sensors to fail miserably 2010-09-16 21:41:13 -07:00
SensorManager.cpp
SharedBufferStack.cpp merge libsurfaceflinger_client into libgui 2011-03-25 18:42:40 -07:00
Surface.cpp remove more unused references to ISurface 2011-04-05 20:11:55 -07:00
SurfaceComposerClient.cpp merge libsurfaceflinger_client into libgui 2011-03-25 18:42:40 -07:00
SurfaceTexture.cpp Fix a GraphicBuffer leak in SurfaceTexture 2011-04-08 19:28:04 -07:00
SurfaceTextureClient.cpp SurfaceTexture can now force the client to request a buffer 2011-04-01 14:43:35 -07:00