Commit bbb7b1c0 by Googler Committed by Marc Baechinger

Fix saving previous debugSurfaceView in FinalMatrixTPWrapper.

PiperOrigin-RevId: 465067306
parent 13e9ec99
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment