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

Commit 9559ef45 authored by Doris Liu's avatar Doris Liu Committed by android-build-merger
Browse files

Merge \"Chcek for valid render content before damaging RenderNode for dirty VD\" into nyc-mr1-dev

am: d53dd6fd

Change-Id: If41865d28e7f57258c40c0b087d9f70a823c38e9
parents f33506a4 d53dd6fd
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();
}