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

Commit e80f306f authored by Valerie Hau's avatar Valerie Hau Committed by Android (Google) Code Review
Browse files

Merge "Fixing another crash when creating/updating BLASTBufferQueue"

parents 7f78246d a8fe8429
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1705,12 +1705,13 @@ public final class ViewRootImpl implements ViewParent,
    }

    Surface getOrCreateBLASTSurface(int width, int height) {
        if (mSurfaceControl == null || !mSurfaceControl.isValid()) {
        if (mSurfaceControl == null
                || !mSurfaceControl.isValid()
                || mBlastSurfaceControl == null
                || !mBlastSurfaceControl.isValid()) {
            return null;
        }
        if ((mBlastSurfaceControl != null)
                && (mBlastBufferQueue == null)
                && mBlastSurfaceControl.isValid()) {
        if (mBlastBufferQueue == null) {
            mBlastBufferQueue = new BLASTBufferQueue(
                mBlastSurfaceControl, width, height);
        }