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) {} }