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

Commit cc9c6441 authored by Rachel Lee's avatar Rachel Lee
Browse files

Fix negative frame time nanos.

On scheduling delays, frame time nanos changes.

Bug: 215299245
Bug: 198191703
Test: atest ChoreographerTest
Change-Id: Ia813971380276a93e0feabc3705dbe7515cc24ae
parent 9162499b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -779,7 +779,7 @@ public final class Choreographer {
                                + "time to " + (lastFrameOffset * 0.000001f) + " ms in the past.");
                    }
                    frameTimeNanos = startNanos - lastFrameOffset;
                    frameData.setFrameTimeNanos(-lastFrameOffset);
                    frameData.setFrameTimeNanos(frameTimeNanos);
                }

                if (frameTimeNanos < mLastFrameTimeNanos) {