Go to file
Jamie Gennis 253d8b6ec7 Refactor the qsd8k gralloc implementation.
The purpose of this change is to add support for allocating gralloc buffers
from either /dev/pmem or /dev/pmem_adsp depending on the usage flags.  It does
this by factoring out and abstracting the interactions with the pmem device.
For /dev/pmem allocations, the kernel allocator is not used, so a single master
fd is opened, and all the allocations are sub-allocated from that by gralloc.
For /dev/pmem_adsp the kernel allocator is used, so it simply opens a new fd
for each allocation.

A very basic unit test that can be run on the host is included.  It requires
gtest, so to run it on a host system gtest must (currently) be compiled with
BUILD_WITH_ASTL=true.

Change-Id: If2ae0151698fad8107e18e808a3fa012a846263f
2010-07-02 12:57:36 -07:00
tests Refactor the qsd8k gralloc implementation. 2010-07-02 12:57:36 -07:00
allocator.cpp Remove calls to dump_l. 2009-10-29 08:35:22 -04:00
allocator.h Refactor the qsd8k gralloc implementation. 2010-07-02 12:57:36 -07:00
Android.mk Refactor the qsd8k gralloc implementation. 2010-07-02 12:57:36 -07:00
framebuffer.cpp gralloc-qsd8k: If using gpu composition, request rgba8888 instead of rgbx8888 2009-12-04 20:22:41 -08:00
gpu.cpp Refactor the qsd8k gralloc implementation. 2010-07-02 12:57:36 -07:00
gpu.h Refactor the qsd8k gralloc implementation. 2010-07-02 12:57:36 -07:00
gr.h make gralloc-qsd8k closer to the generic gralloc so it's easier to maintain 2009-08-19 13:14:55 -07:00
gralloc_priv.h Refactor the qsd8k gralloc implementation. 2010-07-02 12:57:36 -07:00
gralloc.cpp Refactor the qsd8k gralloc implementation. 2010-07-02 12:57:36 -07:00
mapper.cpp Refactor the qsd8k gralloc implementation. 2010-07-02 12:57:36 -07:00
MODULE_LICENSE_APACHE2 Add tags and notices where appropriate. 2010-03-19 15:50:23 -07:00
NOTICE Add tags and notices where appropriate. 2010-03-19 15:50:23 -07:00
pmemalloc.cpp Refactor the qsd8k gralloc implementation. 2010-07-02 12:57:36 -07:00
pmemalloc.h Refactor the qsd8k gralloc implementation. 2010-07-02 12:57:36 -07:00