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

Commit cb96c826 authored by John Reck's avatar John Reck Committed by android-build-merger
Browse files

Merge \\\"Avoid re-calculating vsync mid-frame\\\" into nyc-dev am: fc275d24 am: cb0649f7

am: a32df88d

Change-Id: Ica67f2cf6e78bdde5170e47ef6fb150f234a47cf
parents b690035e a32df88d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ void AnimationContext::startFrame(TreeInfo::TraversalMode mode) {
        mCurrentFrameAnimations.mNextHandle = head;
        head->mPreviousHandle = &mCurrentFrameAnimations;
    }
    mFrameTimeMs = mClock.computeFrameTimeMs();
    mFrameTimeMs = ns2ms(mClock.latestVsync());
}

void AnimationContext::runRemainingAnimations(TreeInfo& info) {
+0 −4
Original line number Diff line number Diff line
@@ -43,10 +43,6 @@ nsecs_t TimeLord::computeFrameTimeNanos() {
    return mFrameTimeNanos;
}

nsecs_t TimeLord::computeFrameTimeMs() {
    return nanoseconds_to_milliseconds(computeFrameTimeNanos());
}

} /* namespace renderthread */
} /* namespace uirenderer */
} /* namespace android */
+0 −1
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ public:
    // returns true if the vsync is newer, false if it was rejected for staleness
    bool vsyncReceived(nsecs_t vsync);
    nsecs_t latestVsync() { return mFrameTimeNanos; }
    nsecs_t computeFrameTimeMs();
    nsecs_t computeFrameTimeNanos();

private: