Lines Matching refs:fd
281 int fd = ashmem_create_region("bitmap", size);
282 if (fd < 0) {
286 void* addr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
288 close(fd);
292 if (ashmem_set_prot_region(fd, PROT_READ) < 0) {
294 close(fd);
297 return sk_sp<Bitmap>(new Bitmap(addr, fd, size, info, rowBytes, ctable));
380 Bitmap::Bitmap(void* address, int fd, size_t mappedSize,
385 mPixelStorage.ashmem.fd = fd;
406 close(mPixelStorage.ashmem.fd);
457 return mPixelStorage.ashmem.fd;