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

Commit 9e2a8174 authored by Rob Carr's avatar Rob Carr Committed by Android (Google) Code Review
Browse files

Merge "SurfaceView: Release BBQ where we release Surface" into sc-dev

parents 114246c8 57c853f2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -877,6 +877,10 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall

        synchronized (mSurfaceControlLock) {
            mSurface.release();
            if (mBlastBufferQueue != null) {
                mBlastBufferQueue.destroy();
                mBlastBufferQueue = null;
            }

            if (mRtHandlingPositionUpdates) {
                mRtReleaseSurfaces = true;
@@ -901,10 +905,6 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
            transaction.remove(mBlastSurfaceControl);
            mBlastSurfaceControl = null;
        }
        if (mBlastBufferQueue != null) {
            mBlastBufferQueue.destroy();
            mBlastBufferQueue = null;
        }
    }

    private boolean performSurfaceTransaction(ViewRootImpl viewRoot, Translator translator,