Lines Matching defs:handle
16 IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height,
18 IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height,
26 // Frees the underlying native handle and leaves the instance initialized to
30 // Allocates a new native handle with the given parameters, freeing the
31 // previous native handle if necessary. Returns 0 on success or a negative
32 // errno code otherwise. If allocation fails the previous native handle is
37 // Resets the underlying native handle and parameters, freeing the previous
38 // native handle if necessary.
39 void Reset(buffer_handle_t handle, uint32_t width, uint32_t height,
43 // Like Reset but also registers the native handle, which is necessary for
45 // code otherwise. If import fails the previous native handle is left intact.
46 int Import(buffer_handle_t handle, uint32_t width, uint32_t height,
50 // Like Reset but imports a native handle from raw fd and int arrays. Returns
52 // previous native handle is left intact.
58 // Duplicates the native handle underlying |other| and then imports it. This
61 // duplication or import fail the previous native handle is left intact.
70 buffer_handle_t handle() const {
71 return buffer_.get() ? buffer_->handle : nullptr;