Unlock the AHardwareBuffer; must be called after all changes to the buffer
are completed by the caller. If fence is not NULL then it will be set to a
file descriptor that is signaled when all pending work on the buffer is
completed. The caller is responsible for closing the fence when it is no
longer needed.
\return 0 on success, -EINVAL if \a buffer is NULL, or an error
number if the unlock fails for any reason.
Unlock the AHardwareBuffer; must be called after all changes to the buffer are completed by the caller. If fence is not NULL then it will be set to a file descriptor that is signaled when all pending work on the buffer is completed. The caller is responsible for closing the fence when it is no longer needed.
\return 0 on success, -EINVAL if \a buffer is NULL, or an error number if the unlock fails for any reason.