Searched refs:ashmem_size (Results 1 – 1 of 1) sorted by relevance
/device/generic/goldfish-opengl/system/gralloc/ |
D | gralloc_old.cpp | 672 int ashmem_size = 0; in gralloc_alloc() local 811 ashmem_size += GOLDFISH_OFFSET_UNIT * 2; in gralloc_alloc() 816 ashmem_size += GOLDFISH_OFFSET_UNIT * 1; in gralloc_alloc() 831 ashmem_size += yStride * h + 2 * (uvHeight * uvStride); in gralloc_alloc() 835 ashmem_size += (bpr * h); in gralloc_alloc() 840 D("gralloc_alloc format=%d, ashmem_size=%d, stride=%d, tid %lu\n", format, ashmem_size, stride, in gralloc_alloc() 847 if (ashmem_size > 0) { in gralloc_alloc() 849 ashmem_size = (ashmem_size + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1); in gralloc_alloc() 851 ALOGD("%s: Creating ashmem region of size %d\n", __FUNCTION__, ashmem_size); in gralloc_alloc() 852 fd = ashmem_create_region("gralloc-buffer", ashmem_size); in gralloc_alloc() [all …]
|