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

Commit 9f091287 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Free DisplayListData for Views with GONE parents"

parents 39baa9d4 9dea0d53
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -12889,6 +12889,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            mPrivateFlags |= PFLAG_DIRTY;
            // Release any resources in-case we don't end up drawing again
            // as anything cached is no longer valid
            resetDisplayList();
            if (invalidateCache) {
                mPrivateFlags |= PFLAG_INVALIDATED;
                mPrivateFlags &= ~PFLAG_DRAWING_CACHE_VALID;
+5 −0
Original line number Diff line number Diff line
@@ -79,6 +79,11 @@ void RenderNode::setStagingDisplayList(DisplayList* displayList) {
    mNeedsDisplayListSync = true;
    delete mStagingDisplayList;
    mStagingDisplayList = displayList;
    // If mParentCount == 0 we are the sole reference to this RenderNode,
    // so immediately free the old display list
    if (!mParentCount && !mStagingDisplayList) {
        deleteDisplayList();
    }
}

/**