pub unsafe extern "C" fn OH_NativeWindow_NativeWindowRequestBuffer(
window: *mut OHNativeWindow,
buffer: *mut *mut OHNativeWindowBuffer,
fenceFd: *mut c_int,
) -> i32Expand description
@brief Requests a OHNativeWindowBuffer through a OHNativeWindow instance for content production.\n Before calling this interface, you need to set the width and height of OHNativeWindow through SET_BUFFER_GEOMETRY.\n This interface needs to be used in conjunction with OH_NativeWindow_NativeWindowFlushBuffer, otherwise buffer will be exhausted.\n When the fenceFd is used up, you need to close it.\n This interface is a non-thread-safe type interface.\n
@syscap SystemCapability.Graphic.Graphic2D.NativeWindow @param window Indicates the pointer to a OHNativeWindow instance. @param buffer Indicates the double pointer to a OHNativeWindowBuffer instance. @param fenceFd Indicates the pointer to a file descriptor handle. @return Returns an error code, 0 is success, otherwise, failed. @since 8 @version 1.0