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

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

Merge "Avoid re-calculating vsync mid-frame" into nyc-dev

parents f4ddb7ce 501ff9ac
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: