diff --git a/libs/hwui/renderthread/RenderThread.cpp b/libs/hwui/renderthread/RenderThread.cpp index d86237789b11..f627a3c656d1 100644 --- a/libs/hwui/renderthread/RenderThread.cpp +++ b/libs/hwui/renderthread/RenderThread.cpp @@ -117,7 +117,7 @@ void RenderThread::extendedFrameCallback(const AChoreographerFrameCallbackData* RenderThread* rt = reinterpret_cast(data); size_t preferredFrameTimelineIndex = AChoreographerFrameCallbackData_getPreferredFrameTimelineIndex(cbData); - int64_t vsyncId = AChoreographerFrameCallbackData_getFrameTimelineVsyncId( + AVsyncId vsyncId = AChoreographerFrameCallbackData_getFrameTimelineVsyncId( cbData, preferredFrameTimelineIndex); int64_t frameDeadline = AChoreographerFrameCallbackData_getFrameTimelineDeadlineNanos( cbData, preferredFrameTimelineIndex); diff --git a/native/android/choreographer.cpp b/native/android/choreographer.cpp index fbd4b2ec8736..e22580d6d71a 100644 --- a/native/android/choreographer.cpp +++ b/native/android/choreographer.cpp @@ -67,7 +67,7 @@ size_t AChoreographerFrameCallbackData_getPreferredFrameTimelineIndex( const AChoreographerFrameCallbackData* data) { return AChoreographerFrameCallbackData_routeGetPreferredFrameTimelineIndex(data); } -int64_t AChoreographerFrameCallbackData_getFrameTimelineVsyncId( +AVsyncId AChoreographerFrameCallbackData_getFrameTimelineVsyncId( const AChoreographerFrameCallbackData* data, size_t index) { return AChoreographerFrameCallbackData_routeGetFrameTimelineVsyncId(data, index); } diff --git a/native/android/surface_control.cpp b/native/android/surface_control.cpp index 5b19102334d9..d01a30e52749 100644 --- a/native/android/surface_control.cpp +++ b/native/android/surface_control.cpp @@ -661,7 +661,7 @@ void ASurfaceTransaction_setOnCommit(ASurfaceTransaction* aSurfaceTransaction, v } void ASurfaceTransaction_setFrameTimeline(ASurfaceTransaction* aSurfaceTransaction, - int64_t vsyncId) { + AVsyncId vsyncId) { CHECK_NOT_NULL(aSurfaceTransaction); // TODO(b/210043506): Get start time from platform. ASurfaceTransaction_to_Transaction(aSurfaceTransaction)