replicant-frameworks_native/services/surfaceflinger
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
..
DisplayHardware remove support for PUSH_BUFFER surfaces and overlays 2010-12-08 16:13:59 -08:00
tests remove more unused references to ISurface 2011-04-05 20:11:55 -07:00
Android.mk merge libsurfaceflinger_client into libgui 2011-03-25 18:42:40 -07:00
Barrier.h move native services under services/ 2010-07-22 15:28:19 -07:00
clz.cpp move native services under services/ 2010-07-22 15:28:19 -07:00
clz.h move native services under services/ 2010-07-22 15:28:19 -07:00
GLExtensions.cpp add support for [1974164] Be able to take a screen shot on the device 2010-09-24 14:56:39 -07:00
GLExtensions.h add support for [1974164] Be able to take a screen shot on the device 2010-09-24 14:56:39 -07:00
Layer.cpp am bd340c7b: am b368f4d8: am 38caff23: Merge "SurfaceFlinger: Fix a typo." into honeycomb-mr1 2011-03-18 17:38:37 -07:00
Layer.h SurfaceFlinger: Respect the PROTECTED gralloc bit. 2011-03-10 16:25:48 -08:00
LayerBase.cpp fix a surface leak in SurfaceFlinger 2011-02-16 15:31:07 -08:00
LayerBase.h SurfaceFlinger: Respect the PROTECTED gralloc bit. 2011-03-10 16:25:48 -08:00
LayerDim.cpp [3418265] apply layer transformations to the DimLayer. 2011-02-02 16:05:39 -08:00
LayerDim.h am 50b029d5: am 7ba35f5a: Merge "[3418265] apply layer transformations to the DimLayer." into honeycomb 2011-02-02 16:46:46 -08:00
MessageQueue.cpp deliver invalidate messages AFTER other messages 2010-10-11 14:11:15 -07:00
MessageQueue.h move native services under services/ 2010-07-22 15:28:19 -07:00
MODULE_LICENSE_APACHE2 move native services under services/ 2010-07-22 15:28:19 -07:00
SurfaceFlinger.cpp Fix a GraphicBuffer leak in SurfaceTexture 2011-04-08 19:28:04 -07:00
SurfaceFlinger.h Fix a GraphicBuffer leak in SurfaceTexture 2011-04-08 19:28:04 -07:00
TextureManager.cpp surfaceflinger / GL extensions cleanup 2010-09-15 17:15:31 -07:00
TextureManager.h fix [2931513] Add support for setting the orientation of an ANativeWindow 2010-08-24 15:40:50 -07:00
Transform.cpp really fix [3118445] Transform * Transform does not work as expected 2010-10-27 18:04:11 -07:00
Transform.h fix [3118445] Transform * Transform does not work as expected 2010-10-24 14:53:05 -07:00