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

Commit ae8e0aea authored by Robert Carr's avatar Robert Carr
Browse files

BLAST: Avoid JNI call on creation

JNI calls aren't free and we don't need to burn one
to call update with the values we just passed in.

Bug: 152501005
Test: Existing tests pass
Change-Id: Iaf272edb03d4ec195b75e9ef7e6c122604025dcb
parent 082d0c47
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1793,8 +1793,9 @@ public final class ViewRootImpl implements ViewParent,
            // We only return the Surface the first time, as otherwise
            // it hasn't changed and there is no need to update.
            ret = mBlastBufferQueue.getSurface();
        }
        } else {
            mBlastBufferQueue.update(mBlastSurfaceControl, width, height);
        }

        return ret;
    }