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

Commit 1a7075f2 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Avoid setting a barrier on layers that will not render frames

Fixes an issue where a barrier is set on a layer that will not
submit a buffer and transactions will get queued up causing
the system to eventually watchdog.

Fixes: 150578848
Test: Run manual repro steps in bug
Test: go/wm-smoke

Change-Id: Icba60e60fa9e62cca2fb3ff06d73f1975485a91d
parent 175d91f6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -5478,7 +5478,9 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
    }

    long getFrameNumber() {
        return mFrameNumber;
        // Return the frame number in which changes requested in this layout will be rendered or
        // -1 if we do not expect the frame to be rendered.
        return getFrameLw().isEmpty() ? -1 : mFrameNumber;
    }

    void setFrameNumber(long frameNumber) {