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

Commit 07a130e3 authored by Dichen Zhang's avatar Dichen Zhang
Browse files

Replace postFrameCallback with postFrameCallback64

Bug: 123660572
Test: atest CtsMediaTestCases:android.media.cts.MediaPlayerTest -- --abi armeabi-v7a
Change-Id: I4eb25b20449101528b72172de40cbc51f745ed22
parent 63c0f36d
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;
}