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

Commit a32df88d 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

Change-Id: I7cc9443c1ab3e876daa3aeecbcb9a41085f359af
parents f5b666cb cb0649f7
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: