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

Commit f8b74d9c authored by Vishnu Nair's avatar Vishnu Nair Committed by Android (Google) Code Review
Browse files

Merge "LayerTraceGenerator: Skip updating transform hint if display is not found"

parents cd9c96eb e3066de6
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());
            }
        });
    }