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

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

Merge "Separate buffer stuffing and jank" into sc-dev

parents 876c8803 c373f351
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -327,11 +327,8 @@ public class FrameTracker extends SurfaceControl.OnJankDataListener
            }
            if (info.surfaceControlCallbackFired) {
                totalFramesCount++;

                // Only count missed frames if it's not stuffed.
                if ((info.jankType & PREDICTION_ERROR) != 0
                        || ((info.jankType & JANK_APP_DEADLINE_MISSED) != 0
                                && (info.jankType & BUFFER_STUFFING) == 0)) {
                        || ((info.jankType & JANK_APP_DEADLINE_MISSED) != 0)) {
                    Log.w(TAG, "Missed App frame:" + info.jankType);
                    missedAppFramesCount++;
                }