diff --git a/native/android/choreographer.cpp b/native/android/choreographer.cpp index 38641de0efb3e..deee5b173c214 100644 --- a/native/android/choreographer.cpp +++ b/native/android/choreographer.cpp @@ -40,6 +40,11 @@ void AChoreographer_postFrameCallbackDelayed64(AChoreographer* choreographer, return AChoreographer_routePostFrameCallbackDelayed64(choreographer, callback, data, delayMillis); } +void AChoreographer_postExtendedFrameCallback(AChoreographer* choreographer, + AChoreographer_extendedFrameCallback callback, + void* data) { + return AChoreographer_routePostExtendedFrameCallback(choreographer, callback, data); +} void AChoreographer_registerRefreshRateCallback(AChoreographer* choreographer, AChoreographer_refreshRateCallback callback, void* data) { @@ -50,3 +55,27 @@ void AChoreographer_unregisterRefreshRateCallback(AChoreographer* choreographer, void* data) { return AChoreographer_routeUnregisterRefreshRateCallback(choreographer, callback, data); } +int64_t AChoreographerFrameCallbackData_getFrameTimeNanos( + const AChoreographerFrameCallbackData* data) { + return AChoreographerFrameCallbackData_routeGetFrameTimeNanos(data); +} +size_t AChoreographerFrameCallbackData_getFrameTimelinesLength( + const AChoreographerFrameCallbackData* data) { + return AChoreographerFrameCallbackData_routeGetFrameTimelinesLength(data); +} +size_t AChoreographerFrameCallbackData_getPreferredFrameTimelineIndex( + const AChoreographerFrameCallbackData* data) { + return AChoreographerFrameCallbackData_routeGetPreferredFrameTimelineIndex(data); +} +int64_t AChoreographerFrameCallbackData_getFrameTimelineVsyncId( + const AChoreographerFrameCallbackData* data, size_t index) { + return AChoreographerFrameCallbackData_routeGetFrameTimelineVsyncId(data, index); +} +int64_t AChoreographerFrameCallbackData_getFrameTimelineExpectedPresentTime( + const AChoreographerFrameCallbackData* data, size_t index) { + return AChoreographerFrameCallbackData_routeGetFrameTimelineExpectedPresentTime(data, index); +} +int64_t AChoreographerFrameCallbackData_getFrameTimelineDeadline( + const AChoreographerFrameCallbackData* data, size_t index) { + return AChoreographerFrameCallbackData_routeGetFrameTimelineDeadline(data, index); +} diff --git a/native/android/libandroid.map.txt b/native/android/libandroid.map.txt index f33e11817730b..29c1d8cc1385a 100644 --- a/native/android/libandroid.map.txt +++ b/native/android/libandroid.map.txt @@ -29,6 +29,13 @@ LIBANDROID { AChoreographer_postFrameCallbackDelayed64; # introduced=29 AChoreographer_registerRefreshRateCallback; # introduced=30 AChoreographer_unregisterRefreshRateCallback; # introduced=30 + AChoreographer_postExtendedFrameCallback; # introduced=33 + AChoreographerFrameCallbackData_getFrameTimeNanos; # introduced=33 + AChoreographerFrameCallbackData_getFrameTimelinesLength; # introduced=33 + AChoreographerFrameCallbackData_getPreferredFrameTimelineIndex; # introduced=33 + AChoreographerFrameCallbackData_getFrameTimelineVsyncId; # introduced=33 + AChoreographerFrameCallbackData_getFrameTimelineExpectedPresentTime; # introduced=33 + AChoreographerFrameCallbackData_getFrameTimelineDeadline; # introduced=33 AConfiguration_copy; AConfiguration_delete; AConfiguration_diff;