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

Commit c60907f0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Replace postFrameCallback with postFrameCallback64"

parents 24129cac 07a130e3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -160,13 +160,13 @@ void VsyncTracker::updateModelLocked() {
    mPhase = (long) (atan2(sampleAvgY, sampleAvgX) / scale);
}

static void frameCallback(long frameTimeNanos, void* data) {
static void frameCallback(int64_t frameTimeNanos, void* data) {
    if (data == NULL) {
        return;
    }
    sp<VsyncTracker> vsyncTracker(static_cast<VsyncTracker*>(data));
    vsyncTracker->addSample(frameTimeNanos);
    AChoreographer_postFrameCallback(AChoreographer_getInstance(),
    AChoreographer_postFrameCallback64(AChoreographer_getInstance(),
            frameCallback, static_cast<void*>(vsyncTracker.get()));
}

@@ -247,7 +247,7 @@ status_t ChoreographerThread::readyToRun() {
    if (AChoreographer_getInstance() == NULL) {
        return NO_INIT;
    }
    AChoreographer_postFrameCallback(AChoreographer_getInstance(), frameCallback, mData);
    AChoreographer_postFrameCallback64(AChoreographer_getInstance(), frameCallback, mData);
    return OK;
}