Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0858de84 authored by Rachel Lee's avatar Rachel Lee Committed by Android (Google) Code Review
Browse files

Merge "Rename to VsyncCallback & Presentation time."

parents bbe73ba9 1e870791
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 {
@@ -86,7 +86,7 @@ status_t ChoreographerThread::readyToRun() {
        return NO_INIT;
    }

    AChoreographer_postExtendedFrameCallback(
    AChoreographer_postVsyncCallback(
            AChoreographer_getInstance(), frameCallback, mParent);
    return OK;
}