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

Commit ac81be19 authored by Rachel Lee's avatar Rachel Lee Committed by Android (Google) Code Review
Browse files

Merge "Throw exception when VsyncEventData null."

parents 016770ea 8786b8df
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1229,6 +1229,10 @@ public final class Choreographer {
            if (newPreferredDeadline < minimumDeadline) {
                DisplayEventReceiver.VsyncEventData latestVsyncEventData =
                        displayEventReceiver.getLatestVsyncEventData();
                if (latestVsyncEventData == null) {
                    throw new IllegalArgumentException(
                            "Could not get VsyncEventData. Did SurfaceFlinger crash?");
                }
                update(frameTimeNanos, latestVsyncEventData);
            } else {
                update(frameTimeNanos, newPreferredIndex);