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

Commit 3629d7ff authored by Jamie Gennis's avatar Jamie Gennis
Browse files

SurfaceFlinger: unfreeze windows for fixed size buffers.

This change makes SurfaceFlinger unfreeze a window if it ever gets a
buffer that is fixed-size.  Normally the window would not be frozen if
its in fixed-size mode, but if the window was frozen before entering
fixed-size mode then it should be unfrozen.

Change-Id: I6bc822d4b02ae51fa8914c1f60f5d24b2002b38d
parent 9a595e67
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -663,8 +663,9 @@ void Layer::lockPageFlip(bool& recomputeVisibleRegions)

        // update the layer size and release freeze-lock
        const Layer::State& front(drawingState());
        if (newFrontBuffer->getWidth()  == front.requested_w &&
            newFrontBuffer->getHeight() == front.requested_h)
        if ((newFrontBuffer->getWidth()  == front.requested_w &&
            newFrontBuffer->getHeight() == front.requested_h) ||
            isFixedSize())
        {
            if ((front.w != front.requested_w) ||
                (front.h != front.requested_h))