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

Commit d5aecc78 authored by Shai Barack's avatar Shai Barack Committed by Android (Google) Code Review
Browse files

Merge "Check loggability before constructing logged string" into main

parents 2331290c b2d332e9
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -1552,15 +1552,19 @@ public final class Choreographer {
                // Otherwise, messages that predate the vsync event will be handled first.
                long now = System.nanoTime();
                if (timestampNanos > now) {
                    if (DEBUG_JANK) {
                        Log.w(TAG, "Frame time is " + ((timestampNanos - now) * 0.000001f)
                                + " ms in the future!  Check that graphics HAL is generating vsync "
                                + "timestamps using the correct timebase.");
                    }
                    timestampNanos = now;
                }

                if (mHavePendingVsync) {
                    if (DEBUG_JANK) {
                        Log.w(TAG, "Already have a pending vsync event.  There should only be "
                                + "one at a time.");
                    }
                } else {
                    mHavePendingVsync = true;
                }