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

Commit 96df49bb authored by Rebecca Schultz Zavin's avatar Rebecca Schultz Zavin
Browse files

Fix hardware overlay so all changes are commited when done.

parent 569e3663
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -594,6 +594,11 @@ LayerBuffer::OverlaySource::~OverlaySource()
    }
}

void LayerBuffer::OverlaySource::onDraw(const Region& clip) const
{
    mLayer.clearWithOpenGL(clip);
}

void LayerBuffer::OverlaySource::onTransaction(uint32_t flags)
{
    const Layer::State& front(mLayer.drawingState());
@@ -624,6 +629,7 @@ void LayerBuffer::OverlaySource::onVisibilityResolved(
                overlay_dev->setPosition(overlay_dev, mOverlay, x,y,w,h);
                overlay_dev->setParameter(overlay_dev, mOverlay, 
                        OVERLAY_TRANSFORM, mLayer.getOrientation());
                overlay_dev->commit(overlay_dev, mOverlay);
            }
        }
    }
+1 −0
Original line number Diff line number Diff line
@@ -138,6 +138,7 @@ private:
                sp<OverlayRef>* overlayRef, 
                uint32_t w, uint32_t h, int32_t format);
        virtual ~OverlaySource();
        virtual void onDraw(const Region& clip) const;
        virtual void onTransaction(uint32_t flags);
        virtual void onVisibilityResolved(const Transform& planeTransform);
    private: