OH_NativeWindow_NativeWindowFlushBuffer

Function OH_NativeWindow_NativeWindowFlushBuffer 

Source
pub unsafe extern "C" fn OH_NativeWindow_NativeWindowFlushBuffer(
    window: *mut NativeWindow,
    buffer: *mut NativeWindowBuffer,
    fenceFd: i32,
    region: Region,
) -> i32
Available on crate feature native_window only.
Expand description

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

The fenceFd will be close by system.

This interface is a non-thread-safe type interface.

Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeWindow

§Arguments

  • window - Indicates the pointer to a OHNativeWindow instance.

  • buffer - Indicates the pointer to a OHNativeWindowBuffer instance.

  • fenceFd - Indicates a file descriptor handle, which is used for timing synchronization.

  • region - Indicates a dirty region where content is updated.

§Returns

  • Returns an error code, 0 is success, otherwise, failed.

Available since API-level: 8

Version: 1.0