Searched refs:ashmem_size (Results 1 – 1 of 1) sorted by relevance
185 int ashmem_size = 0; in gralloc_alloc() local261 ashmem_size += sizeof(uint32_t); in gralloc_alloc()271 ashmem_size += yStride * h + 2 * (uvHeight * uvStride); in gralloc_alloc()275 ashmem_size += (bpr * h); in gralloc_alloc()281 ashmem_size, stride, gettid()); in gralloc_alloc()287 if (ashmem_size > 0) { in gralloc_alloc()289 ashmem_size = (ashmem_size + (PAGE_SIZE-1)) & ~(PAGE_SIZE-1); in gralloc_alloc()291 fd = ashmem_create_region("gralloc-buffer", ashmem_size); in gralloc_alloc()299 cb_handle_t *cb = new cb_handle_t(fd, ashmem_size, usage, in gralloc_alloc()302 if (ashmem_size > 0) { in gralloc_alloc()