Lines Matching defs:handle
292 /* NOTE - We support buffers with only one handle but do not error on
293 * multiple handle case. Reason is that we want to support YUV formats
297 const native_handle_t *handle =
299 int dma_buf = (handle && handle->numFds) ? handle->data[0] : -1;
385 const native_handle_t *handle =
388 /* NOTE - We support buffers with only one handle but do not error on
389 * multiple handle case. Reason is that we want to support YUV formats
393 int dma_buf = (handle && handle->numFds) ? handle->data[0] : -1;
494 if (gralloc_info->handle->numFds != 1) {
496 "VkNativeBufferANDROID::handle::numFds is %d, "
497 "expected 1", gralloc_info->handle->numFds);
500 /* Do not close the gralloc handle's dma_buf. The lifetime of the dma_buf
501 * must exceed that of the gralloc handle, and we do not own the gralloc
502 * handle.
504 int dma_buf = gralloc_info->handle->data[0];
586 /* Do not close the gralloc handle's dma_buf. The lifetime of the dma_buf
587 * must exceed that of the gralloc handle, and we do not own the gralloc
588 * handle.
590 int dma_buf = gralloc_info->handle->data[0];