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

Commit 4f566380 authored by Brian Lindahl's avatar Brian Lindahl Committed by Automerger Merge Worker
Browse files

Merge "Fix bug where buffer slots to clear were not set correctly" into udc-dev am: 5d9aedf5

parents 575faaf5 5d9aedf5
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -144,10 +144,8 @@ class ComposerClientWriter final {

    void setLayerBufferSlotsToClear(int64_t display, int64_t layer,
                                    const std::vector<uint32_t>& slotsToClear) {
        LayerCommand& layerCommand = getLayerCommand(display, layer);
        for (auto slot : slotsToClear) {
            layerCommand.bufferSlotsToClear.emplace(static_cast<int32_t>(slot));
        }
        getLayerCommand(display, layer)
                .bufferSlotsToClear.emplace(slotsToClear.begin(), slotsToClear.end());
    }

    void setLayerSurfaceDamage(int64_t display, int64_t layer, const std::vector<Rect>& damage) {