mirror of
https://github.com/androidx/media.git
synced 2025-05-13 18:50:02 +08:00
Fix variable name
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=199120421
This commit is contained in:
parent
b68dcb0b5b
commit
0d59dc4c43
@ -156,7 +156,7 @@ public final class DummySurface extends Surface {
|
||||
private static final int MSG_INIT = 1;
|
||||
private static final int MSG_RELEASE = 2;
|
||||
|
||||
private @MonotonicNonNull EGLSurfaceTexture eglSurfaceTexure;
|
||||
private @MonotonicNonNull EGLSurfaceTexture eglSurfaceTexture;
|
||||
private @MonotonicNonNull Handler handler;
|
||||
private @Nullable Error initError;
|
||||
private @Nullable RuntimeException initException;
|
||||
@ -169,7 +169,7 @@ public final class DummySurface extends Surface {
|
||||
public DummySurface init(@SecureMode int secureMode) {
|
||||
start();
|
||||
handler = new Handler(getLooper(), /* callback= */ this);
|
||||
eglSurfaceTexure = new EGLSurfaceTexture(handler);
|
||||
eglSurfaceTexture = new EGLSurfaceTexture(handler);
|
||||
boolean wasInterrupted = false;
|
||||
synchronized (this) {
|
||||
handler.obtainMessage(MSG_INIT, secureMode, 0).sendToTarget();
|
||||
@ -232,16 +232,16 @@ public final class DummySurface extends Surface {
|
||||
}
|
||||
|
||||
private void initInternal(@SecureMode int secureMode) {
|
||||
Assertions.checkNotNull(eglSurfaceTexure);
|
||||
eglSurfaceTexure.init(secureMode);
|
||||
Assertions.checkNotNull(eglSurfaceTexture);
|
||||
eglSurfaceTexture.init(secureMode);
|
||||
this.surface =
|
||||
new DummySurface(
|
||||
this, eglSurfaceTexure.getSurfaceTexture(), secureMode != SECURE_MODE_NONE);
|
||||
this, eglSurfaceTexture.getSurfaceTexture(), secureMode != SECURE_MODE_NONE);
|
||||
}
|
||||
|
||||
private void releaseInternal() {
|
||||
Assertions.checkNotNull(eglSurfaceTexure);
|
||||
eglSurfaceTexure.release();
|
||||
Assertions.checkNotNull(eglSurfaceTexture);
|
||||
eglSurfaceTexture.release();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user