From bc2faf2179c02362caf08e3bf5b70ac3b01384ae Mon Sep 17 00:00:00 2001 From: lihui Date: Wed, 30 Oct 2024 15:53:29 +0800 Subject: [PATCH] add vsync callback function brief Signed-off-by: lihui --- graphic/graphic_2d/native_vsync/native_vsync.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/graphic/graphic_2d/native_vsync/native_vsync.h b/graphic/graphic_2d/native_vsync/native_vsync.h index 610fe1deb..ef4cf0389 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); /** -- Gitee