Mathias Agopian
3d6ddfe771
fix [1964228] emulator crash with the new GL
...
gralloc didn't keep the error state properly, so after the first pmem allocation failure, it would systematically fail without reverting to ashmem.
2009-07-06 20:54:51 -07:00
Mathias Agopian
14784235ab
make sure to UNSLAP pmem buffers when they're destroyed/freed, as the client could still have them mmapped
2009-07-02 17:32:15 -07:00
Mathias Agopian
8bf1f75268
add support for YUV formats
2009-06-25 17:38:50 -07:00
Mathias Agopian
31802ca9c0
fallback to ashmem when pmem is not availlable
2009-06-19 16:14:09 -07:00
Mathias Agopian
ed93e8b392
suppress debug log
2009-06-16 18:26:17 -07:00
Mathias Agopian
8c4ab1fa14
pmem allocator in gralloc. enabled for all surfaces. currently it uses a lot more address space than needed.
2009-06-16 18:16:38 -07:00
Mathias Agopian
72c8508db9
add an offset field to gralloc handles so the framebuffer can work with copybit
2009-06-10 16:06:28 -07:00
Mathias Agopian
988b8bd553
lock will now return the vaddr of the buffer. map/umap are gone.
...
- make sure to return an error if a buffer is locked twice or unlocked while not locked.
- added registerBuffer() and unregisterBuffer() to the gralloc module so that we can do some cleanup when a buffer is no longer needed. this became necessary after we removed map/unmap so we have a place to unmap buffers without the need of a kernel module.
- change the constants for GRALLOC_USAGE_SW_{READ|WRITE}_NEVER to 0, so that NOT specifying them means "NEVER".
2009-05-04 14:26:56 -07:00
Mathias Agopian
c3ce41d319
don't automatically unmap buffers when they're freed
...
this is in preparation to an api change wrt gralloc map/unmap
2009-04-14 18:24:09 -07:00
Mathias Agopian
a8a75166a2
Integrate from //sandbox/mathias/donut/...@145728
...
SurfaceFlinger rework for new EGL driver model support.
2009-04-10 14:24:31 -07:00