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

Commit 28947d7f authored by Mathias Agopian's avatar Mathias Agopian
Browse files

now able to set the layer stack on a DisplayDevice

Change-Id: Ia9691cf221b9444c243eb468d9e276a30e600b6b
parent 69973992
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -313,6 +313,13 @@ bool DisplayDevice::isScreenAcquired() const {

// ----------------------------------------------------------------------------

void DisplayDevice::setLayerStack(uint32_t stack) {
    mLayerStack = stack;
    dirtyRegion.set(bounds());
}

// ----------------------------------------------------------------------------

status_t DisplayDevice::orientationToTransfrom(
        int orientation, int w, int h, Transform* tr)
{
+2 −0
Original line number Diff line number Diff line
@@ -91,6 +91,8 @@ public:
    bool                    getSecureLayerVisible() const;

    status_t                setOrientation(int orientation);
    void                    setLayerStack(uint32_t stack);

    int                     getOrientation() const { return mOrientation; }
    const Transform&        getTransform() const { return mGlobalTransform; }
    uint32_t                getLayerStack() const { return mLayerStack; }
+1 −1
Original line number Diff line number Diff line
@@ -857,7 +857,7 @@ void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)
                    const DisplayDeviceState& state(curr[i]);
                    if (state.layerStack != draw[i].layerStack) {
                        const sp<DisplayDevice>& disp(getDisplayDevice(state.id));
                        //disp->setLayerStack(state.layerStack); // FIXME: set layer stack
                        disp->setLayerStack(state.layerStack);
                    }
                    if (curr[i].orientation != draw[i].orientation) {
                        const sp<DisplayDevice>& disp(getDisplayDevice(state.id));