fix(camera): isolate stalled diagnostic modes and gate preview surfaces
This commit is contained in:
@@ -6,6 +6,8 @@ class Surface(val texture: android.graphics.SurfaceTexture) {
|
||||
}
|
||||
|
||||
class SurfaceHolder {
|
||||
var isCreating=false
|
||||
var surfaceFrame=android.graphics.Rect(0,0,640,480)
|
||||
val surface=Surface(android.graphics.SurfaceTexture(run {
|
||||
val ids=IntArray(1);android.opengl.GLES20.glGenTextures(1,ids,0);ids[0]
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user