Add one-button bounded front-camera diagnostics and automatic report
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
package android.view
|
||||
class Surface(val texture: android.graphics.SurfaceTexture) {
|
||||
val isValid get()=!released
|
||||
var released=false
|
||||
fun release() {check(!released);released=true}
|
||||
}
|
||||
|
||||
class SurfaceHolder {
|
||||
val surface=Surface(android.graphics.SurfaceTexture(run {
|
||||
val ids=IntArray(1);android.opengl.GLES20.glGenTextures(1,ids,0);ids[0]
|
||||
}))
|
||||
fun setFixedSize(width: Int,height: Int) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user