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

Commit 3b814cbe authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

Use structured bindings for mVectorDrawables

Test: Build
Change-Id: I60df096bf3720968039f7e4c5eac86682b2fc684
parent 9f9684c4
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -131,13 +131,12 @@ bool SkiaDisplayList::prepareListAndChildren(
        }
    }

    for (auto& vectorDrawablePair : mVectorDrawables) {
    for (auto& [vectorDrawable, cachedMatrix] : mVectorDrawables) {
        // If any vector drawable in the display list needs update, damage the node.
        auto& vectorDrawable = vectorDrawablePair.first;
        if (vectorDrawable->isDirty()) {
            Matrix4 totalMatrix;
            info.damageAccumulator->computeCurrentTransform(&totalMatrix);
            Matrix4 canvasMatrix(vectorDrawablePair.second);
            Matrix4 canvasMatrix(cachedMatrix);
            totalMatrix.multiply(canvasMatrix);
            const SkRect& bounds = vectorDrawable->properties().getBounds();
            if (intersects(info.screenSize, totalMatrix, bounds)) {