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

Commit e57493ab authored by Yu Jia's avatar Yu Jia Committed by Jia Yu
Browse files

cts case

com.android.server.cts.GraphicsStatsValidationTest#testDaveyDrawFrame in
modue CtsIncidentHostTestCases failed

This cts case design 20 frames, every 4 frames include 700ms frame and
150ms frame

When activity launched, first 3 frames need allocate buffer during
dequeue buffer, bug some low-end platform took too long (>6ms), so
it will skip the fourth frame(150ms) and post a new draw callback that will cause cts failed
parent e03b8ee7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -295,7 +295,7 @@ bool CanvasContext::isSwapChainStuffed() {


        // If there's a multi-frameInterval gap we effectively already dropped a frame,
        // If there's a multi-frameInterval gap we effectively already dropped a frame,
        // so consider the queue healthy.
        // so consider the queue healthy.
        if (swapA.swapCompletedTime - swapB.swapCompletedTime > frameInterval * 3) {
        if (std::abs(swapA.swapCompletedTime - swapB.swapCompletedTime) > frameInterval * 3) {
            return false;
            return false;
        }
        }