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

Commit ec923ee0 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

a window could get stuck to gpu composition

this could happen after an orientation change. basically
we need to triger a geometry-changed when the very first buffer
is received

Change-Id: I097e411fd6612c18725737cffccdbf6b2af3511c
parent 02a80874
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -450,6 +450,12 @@ void Layer::lockPageFlip(bool& recomputeVisibleRegions)
        mActiveBuffer = mSurfaceTexture->getCurrentBuffer();
        mFrameLatencyNeeded = true;

        if (oldActiveBuffer == NULL && mActiveBuffer != NULL) {
            // the first time we receive a buffer, we need to trigger a
            // geometry invalidation.
            mFlinger->invalidateHwcGeometry();
        }

        const Rect crop(mSurfaceTexture->getCurrentCrop());
        const uint32_t transform(mSurfaceTexture->getCurrentTransform());
        const uint32_t scalingMode(mSurfaceTexture->getCurrentScalingMode());