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

Commit b4ff4390 authored by Baldev Kumar Sahu's avatar Baldev Kumar Sahu Committed by Linux Build Service Account
Browse files

sf: Validate display id while introducing 50ms delay

Correct condition check while validating display id while
introducing 50ms delay when external animation is disabled.

Change-Id: I625857133582d2d31560d36421a49fdb865b8f86
parent 280bcd3b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2340,7 +2340,8 @@ void SurfaceFlinger::setTransactionState(
    if(mDisableExtAnimation) {
        for (size_t i=0 ; i<count ; i++) {
            const DisplayState& s(displays[i]);
            if(s.token != mBuiltinDisplays[DisplayDevice::DISPLAY_PRIMARY]) {
            if((mDisplays.indexOfKey(s.token) >= 0) && (s.token !=
                    mBuiltinDisplays[DisplayDevice::DISPLAY_PRIMARY])) {
                const uint32_t what = s.what;
                // Invalidate and Delay the binder thread by 50 ms on
                // eDisplayProjectionChanged to trigger a draw cycle so that