Fix saving previous debugSurfaceView in FinalMatrixTPWrapper.

PiperOrigin-RevId: 465067306
(cherry picked from commit bbb7b1c0bc)
This commit is contained in:
Googler 2022-08-03 15:52:24 +00:00 committed by microkatz
parent 19f6b5422b
commit 8d1b91a413

View file

@ -79,7 +79,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
@Nullable private SurfaceViewWrapper debugSurfaceViewWrapper;
private @MonotonicNonNull Listener listener;
private @MonotonicNonNull Pair<Integer, Integer> outputSizeBeforeSurfaceTransformation;
private @MonotonicNonNull SurfaceView debugSurfaceView;
@Nullable private SurfaceView debugSurfaceView;
private volatile boolean outputSizeOrRotationChanged;
@ -229,6 +229,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
debugSurfaceViewWrapper =
new SurfaceViewWrapper(eglDisplay, eglContext, useHdr, debugSurfaceView);
}
this.debugSurfaceView = debugSurfaceView;
}
if (matrixTransformationProcessor != null && outputSizeOrRotationChanged) {