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

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

Merge "Fix buffer damage for quad-buffer"

parents 2ff0f6ce ca718a06
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -242,7 +242,8 @@ private:
        nsecs_t queueDuration;
        nsecs_t queueDuration;
    };
    };


    RingBuffer<SwapHistory, 3> mSwapHistory;
    // Need at least 4 because we do quad buffer. Add a 5th for good measure.
    RingBuffer<SwapHistory, 5> mSwapHistory;
    int64_t mFrameNumber = -1;
    int64_t mFrameNumber = -1;


    // last vsync for a dropped frame due to stuffed queue
    // last vsync for a dropped frame due to stuffed queue