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

Commit 44ac42a6 authored by John Reck's avatar John Reck
Browse files

Add missing fence()

 Bug: 14995924

Change-Id: I991fe74f01468b1b7e34aee0455dc419637f5c8d
parent 3fce73a8
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) {