summaryrefslogtreecommitdiffstats
path: root/modules/gralloc/mapper.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove ARCH_X86.Elliott Hughes2014-12-041-8/+0
| | | | | | Should have been __GLIBC__, but the code is dead anyway. Change-Id: I773f296a9c31949fa631cad863b841584c71f0ef
* gralloc: fix warningsColin Cross2014-02-051-7/+7
| | | | | | | Fix LP64 pointer casting warnings, unused parameters, and turn off missing initializer warnings. Change-Id: Idb70f4534282fed64ae81cb1e154d3f5b93091b0
* gralloc: delete unused mutex declarationRom Lemarchand2013-11-261-4/+0
| | | | Change-Id: Ibc7e70887b61f7dd885c86d412387636d3a6a867
* Log when creating a second buffer mapping in a processJesse Hall2013-03-281-0/+40
| | | | | Bug: 8468756 Change-Id: Ia883f459ea9e2648ca4a0b5a6f09ded4f46f13b3
* Remove pid check in register/unregisterJesse Hall2013-03-281-16/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | The register/unregister gralloc calls were avoiding mmapping/munmapping the shared memory region if the buffer was created by the current process. This is left over from the pmem-based implementation, where trying to map the same region twice in the same process would fail, or would reuse a single mapping without refcounting. This causes problems if a buffer is - allocated in process A, - transferred from A to process B and registered there - unregistered/freed in A - transferred back from B to A and re-registered Process A then has a new handle to the buffer, but since it originally created the buffer it will not be mmapped, so trying to read or write the buffer will crash. With ashmem, mmaping a region twice in the same process creates two distinct mappings which can be used and munmapped independently. So we no longer need to avoid mmapping again in the allocating process. Bug: 8468756 Change-Id: I167bec5ca07e5534c5e2115630fe8386e481388e
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-2/+2
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I0cbe865d464a37365fa3be84948b07e5a0d181d0
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-031-2/+2
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I98e83cc9d22f0ea8fbf397ccccd9ce7773119551
* remove all references to pmem and simplify the lock/unlock hooksMathias Agopian2009-12-151-142/+29
| | | | | | | | | | this gralloc module is only used on the emulator or without a h/w renderer. therefore there is no synchronization to do in lock/unlock and pmem buffers are not relevant. hopefully this will remove some of the confusion about how gralloc should be implemented and make it more obvious that this implementation is not intended to be used by h/w renderers.
* better logsMathias Agopian2009-07-131-2/+2
|
* more fixes for [1965730]. We now free (unmap) both ashmem and pmem regions.Mathias Agopian2009-07-071-1/+35
|
* Simulator build fixes for the new GL stuff. The simulator still doesn't run, ↵Marco Nelissen2009-07-071-0/+9
| | | | but at least it builds.
* pmem allocator in gralloc. enabled for all surfaces. currently it uses a lot ↵Mathias Agopian2009-06-161-15/+31
| | | | more address space than needed.
* with the new lock/unlock API we don't really mean reference counting on ↵Mathias Agopian2009-06-091-204/+66
| | | | | | mmap/munmap because we're guaranteed to map the buffers only once within a process. no need to track all handles anymore, which simplifies the code a lot.
* suppress spurious debug logMathias Agopian2009-06-031-3/+3
|
* better documentation and implementation for lock/unlockMathias Agopian2009-05-051-25/+69
|
* lock will now return the vaddr of the buffer. map/umap are gone.Mathias Agopian2009-05-041-18/+104
| | | | | | - 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".
* Integrate from //sandbox/mathias/donut/...@145728Mathias Agopian2009-04-101-0/+231
SurfaceFlinger rework for new EGL driver model support.