Merge "BLAST: Avoid JNI call on creation" into rvc-dev

This commit is contained in:
Rob Carr
2020-04-29 03:59:14 +00:00
committed by Android (Google) Code Review

View File

@@ -1793,8 +1793,9 @@ public final class ViewRootImpl implements ViewParent,
// We only return the Surface the first time, as otherwise // We only return the Surface the first time, as otherwise
// it hasn't changed and there is no need to update. // it hasn't changed and there is no need to update.
ret = mBlastBufferQueue.getSurface(); ret = mBlastBufferQueue.getSurface();
} else {
mBlastBufferQueue.update(mBlastSurfaceControl, width, height);
} }
mBlastBufferQueue.update(mBlastSurfaceControl, width, height);
return ret; return ret;
} }