pub unsafe extern "C" fn OH_NativeWindow_NativeWindowFlushBuffer(
    window: *mut OHNativeWindow,
    buffer: *mut OHNativeWindowBuffer,
    fenceFd: c_int,
    region: Region
) -> i32
Expand description

@brief Flushes the OHNativeWindowBuffer filled with the content to the buffer queue through a OHNativeWindow instance for content consumption.

@syscap SystemCapability.Graphic.Graphic2D.NativeWindow @param window Indicates the pointer to a OHNativeWindow instance. @param buffer Indicates the pointer to a OHNativeWindowBuffer instance. @param fenceFd Indicates a file descriptor handle, which is used for timing synchronization. @param region Indicates a dirty region where content is updated. @return Returns an error code, 0 is success, otherwise, failed. @since 8 @version 1.0