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

Commit 995f4cff authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Force repaint when color matrix changes

If teh color matrix changes, force a repaint otherwise the
changes will be delayed.

Fixes: 328675276
Test: update brightness slider and confirm color matrix changes are applied immediately
Change-Id: I195a18644ccca55e89f112434d8374e156f58e36
parent d26c9194
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2731,7 +2731,8 @@ CompositeResultsPerDisplay SurfaceFlinger::composite(
    refreshArgs.forceOutputColorMode = mForceColorMode;

    refreshArgs.updatingOutputGeometryThisFrame = mVisibleRegionsDirty;
    refreshArgs.updatingGeometryThisFrame = mGeometryDirty.exchange(false) || mVisibleRegionsDirty;
    refreshArgs.updatingGeometryThisFrame = mGeometryDirty.exchange(false) ||
            mVisibleRegionsDirty || mDrawingState.colorMatrixChanged;
    refreshArgs.internalDisplayRotationFlags = getActiveDisplayRotationFlags();

    if (CC_UNLIKELY(mDrawingState.colorMatrixChanged)) {