Skip to content

Commit

Permalink
Fix saving previous debugSurfaceView in FinalMatrixTPWrapper.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 465067306
  • Loading branch information
Googler authored and marcbaechinger committed Oct 19, 2022
1 parent 13e9ec9 commit bbb7b1c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
@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;

Expand Down Expand Up @@ -229,6 +229,7 @@ private synchronized boolean ensureConfigured(int inputWidth, int inputHeight)
debugSurfaceViewWrapper =
new SurfaceViewWrapper(eglDisplay, eglContext, useHdr, debugSurfaceView);
}
this.debugSurfaceView = debugSurfaceView;
}

if (matrixTransformationProcessor != null && outputSizeOrRotationChanged) {
Expand Down

0 comments on commit bbb7b1c

Please sign in to comment.