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

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

Merge "Add missing nothingToDraw() check"

parents 38e704ca 51c51df4
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
@@ -180,6 +180,7 @@ void FrameBuilder::deferRenderNodeScene(const std::vector< sp<RenderNode> >& nod
        }
    }

    if (!nodes[1]->nothingToDraw()) {
        if (!backdrop.isEmpty()) {
            // content node translation to catch up with backdrop
            float dx = contentDrawBounds.left - backdrop.left;
@@ -191,6 +192,7 @@ void FrameBuilder::deferRenderNodeScene(const std::vector< sp<RenderNode> >& nod
        } else {
            deferRenderNode(*nodes[1]);
        }
    }

    // remaining overlay nodes, simply defer
    for (size_t index = 2; index < nodes.size(); index++) {