Add 'release' calls to address space resources

gralloc passes its handles between processes as native_handle,
where file handles are duped and the rest is just copied. We
need to send address space resources there as well. The 'release'
call will transfer ownership from address space classes to gralloc.

Bug: 141385612
Test: build, boot
Change-Id: I5098c66236882f9d5f30263013bc6f605840138b
Signed-off-by: Roman Kiryanov <rkir@google.com>
4 files changed