mirror of
https://github.com/androidx/media.git
synced 2025-05-14 02:59:52 +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_INIT = 1;
|
||||||
private static final int MSG_RELEASE = 2;
|
private static final int MSG_RELEASE = 2;
|
||||||
|
|
||||||
private @MonotonicNonNull EGLSurfaceTexture eglSurfaceTexure;
|
private @MonotonicNonNull EGLSurfaceTexture eglSurfaceTexture;
|
||||||
private @MonotonicNonNull Handler handler;
|
private @MonotonicNonNull Handler handler;
|
||||||
private @Nullable Error initError;
|
private @Nullable Error initError;
|
||||||
private @Nullable RuntimeException initException;
|
private @Nullable RuntimeException initException;
|
||||||
@ -169,7 +169,7 @@ public final class DummySurface extends Surface {
|
|||||||
public DummySurface init(@SecureMode int secureMode) {
|
public DummySurface init(@SecureMode int secureMode) {
|
||||||
start();
|
start();
|
||||||
handler = new Handler(getLooper(), /* callback= */ this);
|
handler = new Handler(getLooper(), /* callback= */ this);
|
||||||
eglSurfaceTexure = new EGLSurfaceTexture(handler);
|
eglSurfaceTexture = new EGLSurfaceTexture(handler);
|
||||||
boolean wasInterrupted = false;
|
boolean wasInterrupted = false;
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
handler.obtainMessage(MSG_INIT, secureMode, 0).sendToTarget();
|
handler.obtainMessage(MSG_INIT, secureMode, 0).sendToTarget();
|
||||||
@ -232,16 +232,16 @@ public final class DummySurface extends Surface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void initInternal(@SecureMode int secureMode) {
|
private void initInternal(@SecureMode int secureMode) {
|
||||||
Assertions.checkNotNull(eglSurfaceTexure);
|
Assertions.checkNotNull(eglSurfaceTexture);
|
||||||
eglSurfaceTexure.init(secureMode);
|
eglSurfaceTexture.init(secureMode);
|
||||||
this.surface =
|
this.surface =
|
||||||
new DummySurface(
|
new DummySurface(
|
||||||
this, eglSurfaceTexure.getSurfaceTexture(), secureMode != SECURE_MODE_NONE);
|
this, eglSurfaceTexture.getSurfaceTexture(), secureMode != SECURE_MODE_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void releaseInternal() {
|
private void releaseInternal() {
|
||||||
Assertions.checkNotNull(eglSurfaceTexure);
|
Assertions.checkNotNull(eglSurfaceTexture);
|
||||||
eglSurfaceTexure.release();
|
eglSurfaceTexture.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user