diff --git a/graphic/graphic_2d/native_vsync/native_vsync.h b/graphic/graphic_2d/native_vsync/native_vsync.h index 610fe1debc2c44e035005c71cd5a060d19a7eb2d..ef4cf0389b273c2b0cc256b82151c3b93dc3eb63 100644 --- a/graphic/graphic_2d/native_vsync/native_vsync.h +++ b/graphic/graphic_2d/native_vsync/native_vsync.h @@ -45,6 +45,14 @@ extern "C" { struct OH_NativeVSync; typedef struct OH_NativeVSync OH_NativeVSync; +/** +* @brief Defines the callback function handle for the post-process when next vsync coming. +* +* @param timestamp Indicates the system timestamp obtained by CLOCK_MONOTONIC in nanoseconds. +* @param data Indicates the user defined data. +* @since 9 +* @version 1.0 +*/ typedef void (*OH_NativeVSync_FrameCallback)(long long timestamp, void *data); /**