Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4e9b95f2 authored by Colin Cross's avatar Colin Cross Committed by Christopher N. Hesse
Browse files

exynos: gralloc: register buffers in alloc

gralloc_alloc was creating buffers with ion_alloc_fd, which results
in a dmabuf but no ion handle.  This makes it hard to track buffers
that are never registered with another process, or ones that are
unregistered from their process like the wallpaper.

Call gralloc_register_buffer from inside alloc to convert the dmabufs
to ion handles, and gralloc_unregister_buffer inside free.
gralloc_register_buffer currently unnecissarily maps the buffer as
well, which gralloc_lock will do as necessary, so remove the map.
gralloc_unregister_buffer will unmap if necesssary, so remove
the call to grallocUnmap in gralloc_free.  That leaves no callers
to grallocUnmap (and there weren't any callers to grallocMap), so
remove them and gr.h.

Conflicts:
	gralloc/gr.h
	gralloc/gralloc.cpp
	gralloc/mapper.cpp

Change-Id: I959feb48e6899ba28028c2e17d304ddf76346fd3
parent 46547a1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment