Loading services/camera/libcameraservice/device3/PreviewFrameScheduler.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -44,14 +44,14 @@ static void frameCallback(const AChoreographerFrameCallbackData* callbackData, v 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 { Loading Loading @@ -86,7 +86,7 @@ status_t ChoreographerThread::readyToRun() { return NO_INIT; } AChoreographer_postExtendedFrameCallback( AChoreographer_postVsyncCallback( AChoreographer_getInstance(), frameCallback, mParent); return OK; } Loading Loading
services/camera/libcameraservice/device3/PreviewFrameScheduler.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -44,14 +44,14 @@ static void frameCallback(const AChoreographerFrameCallbackData* callbackData, v 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 { Loading Loading @@ -86,7 +86,7 @@ status_t ChoreographerThread::readyToRun() { return NO_INIT; } AChoreographer_postExtendedFrameCallback( AChoreographer_postVsyncCallback( AChoreographer_getInstance(), frameCallback, mParent); return OK; } Loading