From 6d8dabb8095dba78ff895f658d4c4d8e2c31b21f Mon Sep 17 00:00:00 2001 From: shenben <714081644@qq.com> Date: Mon, 6 Nov 2023 16:55:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=AF=91=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webrtcextension/TextureViewRenderer.kt | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) 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. *