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

Commit e3066de6 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

LayerTraceGenerator: Skip updating transform hint if display is not found

Special case for LayerTraceGenerator where we do not mock a display,
we just ignore updating the transform hint instead.

Test: atest transactiontrace_testsuite
Bug: 235376060
Change-Id: I5313bc26703cd52e36c7eb6f86f139a2752d40d1
parent 05626712
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3199,7 +3199,7 @@ void SurfaceFlinger::commitTransactionsLocked(uint32_t transactionFlags) {
                }
            }

            if (!hintDisplay) {
            if (!hintDisplay && mDisplays.size() > 0) {
                // NOTE: TEMPORARY FIX ONLY. Real fix should cause layers to
                // redraw after transform hint changes. See bug 8508397.

@@ -3209,7 +3209,11 @@ void SurfaceFlinger::commitTransactionsLocked(uint32_t transactionFlags) {
                hintDisplay = getDefaultDisplayDeviceLocked();
            }

            if (hintDisplay) {
                layer->updateTransformHint(hintDisplay->getTransformHint());
            } else {
                ALOGW("Ignoring transform hint update for %s", layer->getDebugName());
            }
        });
    }