diff --git a/extension-lib/src/main/java/com/shencoder/webrtcextension/TextureViewRenderer.kt b/extension-lib/src/main/java/com/shencoder/webrtcextension/TextureViewRenderer.kt index 5680fc2..ccb46aa 100644 --- a/extension-lib/src/main/java/com/shencoder/webrtcextension/TextureViewRenderer.kt +++ b/extension-lib/src/main/java/com/shencoder/webrtcextension/TextureViewRenderer.kt @@ -49,9 +49,10 @@ open class TextureViewRenderer @JvmOverloads constructor( } private val resourceName: String = getResourceName() - protected val videoLayoutMeasure = RendererCommon.VideoLayoutMeasure() - protected val eglRenderer = TextureEglRenderer(resourceName, internalRendererEvents) - private var rendererEvents: RendererCommon.RendererEvents? = null + val videoLayoutMeasure = RendererCommon.VideoLayoutMeasure() + val eglRenderer = TextureEglRenderer(resourceName, internalRendererEvents) + var rendererEvents: RendererCommon.RendererEvents? = null + private set protected var rotatedFrameWidth = 0 protected var rotatedFrameHeight = 0 @@ -137,18 +138,6 @@ open class TextureViewRenderer @JvmOverloads constructor( eglRenderer.clearImage() } - fun getVideoLayoutMeasure(): RendererCommon.VideoLayoutMeasure { - return videoLayoutMeasure - } - - fun getEglRenderer(): TextureEglRenderer { - return eglRenderer - } - - fun getRendererEvents(): RendererCommon.RendererEvents? { - return rendererEvents - } - /** * Register a callback to be invoked when a new video frame has been received. *