Home
last modified time | relevance | path

Searched refs:memregions (Results 1 – 1 of 1) sorted by relevance

/device/generic/goldfish-opengl/system/gralloc/
Dgralloc_old.cpp371 gralloc_memregions_t* memregions = init_gralloc_memregions(); in get_mem_region() local
373 pthread_mutex_lock(&memregions->lock); in get_mem_region()
374 ++memregions->ashmemRegions[ashmemBase]; in get_mem_region()
375 pthread_mutex_unlock(&memregions->lock); in get_mem_region()
381 gralloc_memregions_t* memregions = init_gralloc_memregions(); in put_mem_region() local
384 pthread_mutex_lock(&memregions->lock); in put_mem_region()
385 gralloc_memregions_t::MemRegionMap::iterator i = memregions->ashmemRegions.find(ashmemBase); in put_mem_region()
386 if (i == memregions->ashmemRegions.end()) { in put_mem_region()
392 memregions->ashmemRegions.erase(i); in put_mem_region()
395 pthread_mutex_unlock(&memregions->lock); in put_mem_region()
[all …]