Rename to VsyncCallback & Presentation time.
Bug: 217370454
Test: make, presubmit
Change-Id: Ie97497b3648d17fb20f5838f3a256d1fcee0f0da
diff --git a/services/camera/libcameraservice/device3/PreviewFrameScheduler.cpp b/services/camera/libcameraservice/device3/PreviewFrameScheduler.cpp
index 154e6f5..80f27ed 100644
--- a/services/camera/libcameraservice/device3/PreviewFrameScheduler.cpp
+++ b/services/camera/libcameraservice/device3/PreviewFrameScheduler.cpp
@@ -44,14 +44,14 @@
size_t length = AChoreographerFrameCallbackData_getFrameTimelinesLength(callbackData);
std::vector<nsecs_t> timeline(length);
for (size_t i = 0; i < length; i++) {
- nsecs_t timestamp = AChoreographerFrameCallbackData_getFrameTimelineExpectedPresentTimeNanos(
+ nsecs_t timestamp = AChoreographerFrameCallbackData_getFrameTimelineExpectedPresentationTimeNanos(
callbackData, i);
timeline[i] = timestamp;
}
parent->onNewPresentationTime(timeline);
- AChoreographer_postExtendedFrameCallback(AChoreographer_getInstance(), frameCallback, data);
+ AChoreographer_postVsyncCallback(AChoreographer_getInstance(), frameCallback, data);
}
struct ChoreographerThread : public Thread {
@@ -86,7 +86,7 @@
return NO_INIT;
}
- AChoreographer_postExtendedFrameCallback(
+ AChoreographer_postVsyncCallback(
AChoreographer_getInstance(), frameCallback, mParent);
return OK;
}