Home
last modified time | relevance | path

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

/device/generic/goldfish-opengl/system/gralloc/
Dgralloc_old.cpp654 int ashmem_size = 0; in gralloc_alloc() local
793 ashmem_size += GOLDFISH_OFFSET_UNIT * 2; in gralloc_alloc()
798 ashmem_size += GOLDFISH_OFFSET_UNIT * 1; in gralloc_alloc()
813 ashmem_size += yStride * h + 2 * (uvHeight * uvStride); in gralloc_alloc()
817 ashmem_size += (bpr * h); in gralloc_alloc()
823 ashmem_size, stride, getCurrentThreadId()); in gralloc_alloc()
829 if (ashmem_size > 0) { in gralloc_alloc()
831 ashmem_size = (ashmem_size + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1); in gralloc_alloc()
833 ALOGD("%s: Creating ashmem region of size %d\n", __FUNCTION__, ashmem_size); in gralloc_alloc()
834 fd = ashmem_create_region("gralloc-buffer", ashmem_size); in gralloc_alloc()
[all …]