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

Commit b2128096 authored by Doris Liu's avatar Doris Liu Committed by The Android Automerger
Browse files

Chcek for valid render content before damaging RenderNode for dirty VD

BUG: 29320878
Change-Id: I847d76467bad92c956a4bb7617627983d64e90f9
parent cb77fc40
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -421,6 +421,7 @@ void RenderNode::prepareTreeImpl(TreeInfo& info, bool functorsNeedLayer) {
    prepareSubTree(info, childFunctorsNeedLayer, mDisplayList);
    pushLayerUpdate(info);

    if (mDisplayList) {
        for (auto& vectorDrawable : mDisplayList->getVectorDrawables()) {
            // If any vector drawable in the display list needs update, damage the node.
            if (vectorDrawable->isDirty()) {
@@ -428,6 +429,7 @@ void RenderNode::prepareTreeImpl(TreeInfo& info, bool functorsNeedLayer) {
            }
            vectorDrawable->setPropertyChangeWillBeConsumed(true);
        }
    }

    info.damageAccumulator->popTransform();
}