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

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

Merge "Add missing fence()"

parents ac13a9b7 44ac42a6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -668,6 +668,11 @@ public final class ViewRootImpl implements ViewParent,
    public void detachFunctor(long functor) {
        // TODO: Make the resize buffer some other way to not need this block
        mBlockResizeBuffer = true;
        if (mAttachInfo.mHardwareRenderer != null) {
            // Fence so that any pending invokeFunctor() messages will be processed
            // before we return from detachFunctor.
            mAttachInfo.mHardwareRenderer.fence();
        }
    }

    public boolean invokeFunctor(long functor, boolean waitForCompletion) {