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

Commit 545f4332 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use structured bindings for mVectorDrawables"

parents 0d3aaf89 3b814cbe
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)) {