summaryrefslogtreecommitdiff
path: root/libs/ui/Input.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2011-04-08 19:10:43 -0700
committer Mathias Agopian <mathias@google.com> 2011-04-08 19:28:04 -0700
commit4cb18881b55b82a24873ccd8e298bc2d5a9c17e5 (patch)
tree8708afe05c6c0c485f81aa6aaef2aabd425982ad /libs/ui/Input.cpp
parent626d865d418cf3fcea985429ef85cf83f8cd978e (diff)
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
Diffstat (limited to 'libs/ui/Input.cpp')
0 files changed, 0 insertions, 0 deletions