.class public final Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture; .super Ljava/lang/Object; .source "SourceFile" # interfaces .implements Landroid/graphics/SurfaceTexture$OnFrameAvailableListener; .implements Ljava/lang/Runnable; # annotations .annotation build Landroid/annotation/TargetApi; value = 0x11 .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException;, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$SecureMode; } .end annotation # static fields .field private static final EGL_CONFIG_ATTRIBUTES:[I .field private static final EGL_PROTECTED_CONTENT_EXT:I = 0x32c0 .field public static final SECURE_MODE_NONE:I = 0x0 .field public static final SECURE_MODE_PROTECTED_PBUFFER:I = 0x2 .field public static final SECURE_MODE_SURFACELESS_CONTEXT:I = 0x1 # instance fields .field private context:Landroid/opengl/EGLContext; .annotation build Landroidx/annotation/Nullable; .end annotation .end field .field private display:Landroid/opengl/EGLDisplay; .annotation build Landroidx/annotation/Nullable; .end annotation .end field .field private final handler:Landroid/os/Handler; .field private surface:Landroid/opengl/EGLSurface; .annotation build Landroidx/annotation/Nullable; .end annotation .end field .field private texture:Landroid/graphics/SurfaceTexture; .annotation build Landroidx/annotation/Nullable; .end annotation .end field .field private final textureIdHolder:[I # direct methods .method static constructor ()V .locals 1 const/16 v0, 0x11 new-array v0, v0, [I fill-array-data v0, :array_0 sput-object v0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->EGL_CONFIG_ATTRIBUTES:[I return-void :array_0 .array-data 4 0x3040 0x4 0x3024 0x8 0x3023 0x8 0x3022 0x8 0x3021 0x8 0x3025 0x0 0x3027 0x3038 0x3033 0x4 0x3038 .end array-data .end method .method public constructor (Landroid/os/Handler;)V .locals 0 .line 65 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->handler:Landroid/os/Handler; const/4 p1, 0x1 new-array p1, p1, [I iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->textureIdHolder:[I return-void .end method .method private static chooseEGLConfig(Landroid/opengl/EGLDisplay;)Landroid/opengl/EGLConfig; .locals 10 const/4 v0, 0x1 new-array v9, v0, [Landroid/opengl/EGLConfig; new-array v0, v0, [I sget-object v2, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->EGL_CONFIG_ATTRIBUTES:[I const/4 v3, 0x0 const/4 v5, 0x0 const/4 v6, 0x1 const/4 v8, 0x0 move-object v1, p0 move-object v4, v9 move-object v7, v0 .line 152 invoke-static/range {v1 .. v8}, Landroid/opengl/EGL14;->eglChooseConfig(Landroid/opengl/EGLDisplay;[II[Landroid/opengl/EGLConfig;II[II)Z move-result p0 const/4 v1, 0x0 if-eqz p0, :cond_0 aget v2, v0, v1 if-lez v2, :cond_0 aget-object v2, v9, v1 if-eqz v2, :cond_0 return-object v2 .line 162 :cond_0 new-instance v2, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException; .line 165 invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; move-result-object p0 aget v0, v0, v1 invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v0 aget-object v1, v9, v1 filled-new-array {p0, v0, v1}, [Ljava/lang/Object; move-result-object p0 const-string v0, "eglChooseConfig failed: success=%b, numConfigs[0]=%d, configs[0]=%s" .line 163 invoke-static {v0, p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->formatInvariant(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; move-result-object p0 const/4 v0, 0x0 invoke-direct {v2, p0, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException;->(Ljava/lang/String;Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$1;)V throw v2 .end method .method private static createEGLContext(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;I)Landroid/opengl/EGLContext; .locals 4 const/16 v0, 0x3038 const/4 v1, 0x2 const/16 v2, 0x3098 if-nez p2, :cond_0 filled-new-array {v2, v1, v0}, [I move-result-object p2 goto :goto_0 :cond_0 const/16 p2, 0x32c0 const/4 v3, 0x1 filled-new-array {v2, v1, p2, v3, v0}, [I move-result-object p2 .line 186 :goto_0 sget-object v0, Landroid/opengl/EGL14;->EGL_NO_CONTEXT:Landroid/opengl/EGLContext; const/4 v1, 0x0 .line 187 invoke-static {p0, p1, v0, p2, v1}, Landroid/opengl/EGL14;->eglCreateContext(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;Landroid/opengl/EGLContext;[II)Landroid/opengl/EGLContext; move-result-object p0 if-eqz p0, :cond_1 return-object p0 .line 190 :cond_1 new-instance p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException; const-string p1, "eglCreateContext failed" const/4 p2, 0x0 invoke-direct {p0, p1, p2}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException;->(Ljava/lang/String;Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$1;)V throw p0 .end method .method private static createEGLSurface(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;Landroid/opengl/EGLContext;I)Landroid/opengl/EGLSurface; .locals 4 const/4 v0, 0x0 const/4 v1, 0x1 if-ne p3, v1, :cond_0 .line 199 sget-object p1, Landroid/opengl/EGL14;->EGL_NO_SURFACE:Landroid/opengl/EGLSurface; goto :goto_1 :cond_0 const/4 v2, 0x2 if-ne p3, v2, :cond_1 const/4 p3, 0x7 new-array p3, p3, [I fill-array-data p3, :array_0 goto :goto_0 :cond_1 const/16 p3, 0x3056 const/16 v2, 0x3038 const/16 v3, 0x3057 filled-new-array {v3, v1, p3, v1, v2}, [I move-result-object p3 :goto_0 const/4 v1, 0x0 .line 221 invoke-static {p0, p1, p3, v1}, Landroid/opengl/EGL14;->eglCreatePbufferSurface(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;[II)Landroid/opengl/EGLSurface; move-result-object p1 if-eqz p1, :cond_3 .line 228 :goto_1 invoke-static {p0, p1, p1, p2}, Landroid/opengl/EGL14;->eglMakeCurrent(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLSurface;Landroid/opengl/EGLSurface;Landroid/opengl/EGLContext;)Z move-result p0 if-eqz p0, :cond_2 return-object p1 .line 230 :cond_2 new-instance p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException; const-string p1, "eglMakeCurrent failed" invoke-direct {p0, p1, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException;->(Ljava/lang/String;Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$1;)V throw p0 .line 223 :cond_3 new-instance p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException; const-string p1, "eglCreatePbufferSurface failed" invoke-direct {p0, p1, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException;->(Ljava/lang/String;Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$1;)V throw p0 nop :array_0 .array-data 4 0x3057 0x1 0x3056 0x1 0x32c0 0x1 0x3038 .end array-data .end method .method private static generateTextureIds([I)V .locals 3 const/4 v0, 0x1 const/4 v1, 0x0 .line 236 invoke-static {v0, p0, v1}, Landroid/opengl/GLES20;->glGenTextures(I[II)V .line 237 invoke-static {}, Landroid/opengl/GLES20;->glGetError()I move-result p0 if-nez p0, :cond_0 return-void .line 239 :cond_0 new-instance v0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException; new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V const-string v2, "glGenTextures failed. Error: " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-static {p0}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String; move-result-object p0 invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 const/4 v1, 0x0 invoke-direct {v0, p0, v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException;->(Ljava/lang/String;Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$1;)V throw v0 .end method .method private static getDefaultDisplay()Landroid/opengl/EGLDisplay; .locals 5 const/4 v0, 0x0 .line 134 invoke-static {v0}, Landroid/opengl/EGL14;->eglGetDisplay(I)Landroid/opengl/EGLDisplay; move-result-object v1 const/4 v2, 0x0 if-eqz v1, :cond_1 const/4 v3, 0x2 new-array v3, v3, [I const/4 v4, 0x1 .line 141 invoke-static {v1, v3, v0, v3, v4}, Landroid/opengl/EGL14;->eglInitialize(Landroid/opengl/EGLDisplay;[II[II)Z move-result v0 if-eqz v0, :cond_0 return-object v1 .line 143 :cond_0 new-instance v0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException; const-string v1, "eglInitialize failed" invoke-direct {v0, v1, v2}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException;->(Ljava/lang/String;Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$1;)V throw v0 .line 136 :cond_1 new-instance v0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException; const-string v1, "eglGetDisplay failed" invoke-direct {v0, v1, v2}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$GlException;->(Ljava/lang/String;Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture$1;)V throw v0 .end method # virtual methods .method public final getSurfaceTexture()Landroid/graphics/SurfaceTexture; .locals 1 iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->texture:Landroid/graphics/SurfaceTexture; .line 114 invoke-static {v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Assertions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/graphics/SurfaceTexture; return-object v0 .end method .method public final init(I)V .locals 3 .line 72 invoke-static {}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->getDefaultDisplay()Landroid/opengl/EGLDisplay; move-result-object v0 iput-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->display:Landroid/opengl/EGLDisplay; .line 73 invoke-static {v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->chooseEGLConfig(Landroid/opengl/EGLDisplay;)Landroid/opengl/EGLConfig; move-result-object v0 iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->display:Landroid/opengl/EGLDisplay; .line 74 invoke-static {v1, v0, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->createEGLContext(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;I)Landroid/opengl/EGLContext; move-result-object v1 iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->context:Landroid/opengl/EGLContext; iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->display:Landroid/opengl/EGLDisplay; .line 75 invoke-static {v2, v0, v1, p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->createEGLSurface(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLConfig;Landroid/opengl/EGLContext;I)Landroid/opengl/EGLSurface; move-result-object p1 iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->surface:Landroid/opengl/EGLSurface; iget-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->textureIdHolder:[I .line 76 invoke-static {p1}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->generateTextureIds([I)V .line 77 new-instance p1, Landroid/graphics/SurfaceTexture; iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->textureIdHolder:[I const/4 v1, 0x0 aget v0, v0, v1 invoke-direct {p1, v0}, Landroid/graphics/SurfaceTexture;->(I)V iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->texture:Landroid/graphics/SurfaceTexture; .line 78 invoke-virtual {p1, p0}, Landroid/graphics/SurfaceTexture;->setOnFrameAvailableListener(Landroid/graphics/SurfaceTexture$OnFrameAvailableListener;)V return-void .end method .method public final onFrameAvailable(Landroid/graphics/SurfaceTexture;)V .locals 0 iget-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->handler:Landroid/os/Handler; .line 121 invoke-virtual {p1, p0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z return-void .end method .method public final release()V .locals 6 iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->handler:Landroid/os/Handler; .line 84 invoke-virtual {v0, p0}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V const/16 v0, 0x13 const/4 v1, 0x0 :try_start_0 iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->texture:Landroid/graphics/SurfaceTexture; if-eqz v2, :cond_0 .line 87 invoke-virtual {v2}, Landroid/graphics/SurfaceTexture;->release()V iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->textureIdHolder:[I const/4 v3, 0x0 const/4 v4, 0x1 .line 88 invoke-static {v4, v2, v3}, Landroid/opengl/GLES20;->glDeleteTextures(I[II)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception v2 goto :goto_1 :cond_0 :goto_0 iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->display:Landroid/opengl/EGLDisplay; if-eqz v2, :cond_1 .line 91 sget-object v3, Landroid/opengl/EGL14;->EGL_NO_DISPLAY:Landroid/opengl/EGLDisplay; invoke-virtual {v2, v3}, Landroid/opengl/EGLDisplay;->equals(Ljava/lang/Object;)Z move-result v2 if-nez v2, :cond_1 iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->display:Landroid/opengl/EGLDisplay; .line 92 sget-object v3, Landroid/opengl/EGL14;->EGL_NO_SURFACE:Landroid/opengl/EGLSurface; sget-object v4, Landroid/opengl/EGL14;->EGL_NO_CONTEXT:Landroid/opengl/EGLContext; invoke-static {v2, v3, v3, v4}, Landroid/opengl/EGL14;->eglMakeCurrent(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLSurface;Landroid/opengl/EGLSurface;Landroid/opengl/EGLContext;)Z :cond_1 iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->surface:Landroid/opengl/EGLSurface; if-eqz v2, :cond_2 .line 95 sget-object v3, Landroid/opengl/EGL14;->EGL_NO_SURFACE:Landroid/opengl/EGLSurface; invoke-virtual {v2, v3}, Landroid/opengl/EGLSurface;->equals(Ljava/lang/Object;)Z move-result v2 if-nez v2, :cond_2 iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->display:Landroid/opengl/EGLDisplay; iget-object v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->surface:Landroid/opengl/EGLSurface; .line 96 invoke-static {v2, v3}, Landroid/opengl/EGL14;->eglDestroySurface(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLSurface;)Z :cond_2 iget-object v2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->context:Landroid/opengl/EGLContext; if-eqz v2, :cond_3 iget-object v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->display:Landroid/opengl/EGLDisplay; .line 99 invoke-static {v3, v2}, Landroid/opengl/EGL14;->eglDestroyContext(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLContext;)Z .line 102 :cond_3 sget v2, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I if-lt v2, v0, :cond_4 .line 103 invoke-static {}, Landroid/opengl/EGL14;->eglReleaseThread()Z :cond_4 iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->display:Landroid/opengl/EGLDisplay; iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->context:Landroid/opengl/EGLContext; iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->surface:Landroid/opengl/EGLSurface; iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->texture:Landroid/graphics/SurfaceTexture; return-void :goto_1 iget-object v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->display:Landroid/opengl/EGLDisplay; if-eqz v3, :cond_5 .line 91 sget-object v4, Landroid/opengl/EGL14;->EGL_NO_DISPLAY:Landroid/opengl/EGLDisplay; invoke-virtual {v3, v4}, Landroid/opengl/EGLDisplay;->equals(Ljava/lang/Object;)Z move-result v3 if-nez v3, :cond_5 iget-object v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->display:Landroid/opengl/EGLDisplay; .line 92 sget-object v4, Landroid/opengl/EGL14;->EGL_NO_SURFACE:Landroid/opengl/EGLSurface; sget-object v5, Landroid/opengl/EGL14;->EGL_NO_CONTEXT:Landroid/opengl/EGLContext; invoke-static {v3, v4, v4, v5}, Landroid/opengl/EGL14;->eglMakeCurrent(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLSurface;Landroid/opengl/EGLSurface;Landroid/opengl/EGLContext;)Z :cond_5 iget-object v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->surface:Landroid/opengl/EGLSurface; if-eqz v3, :cond_6 .line 95 sget-object v4, Landroid/opengl/EGL14;->EGL_NO_SURFACE:Landroid/opengl/EGLSurface; invoke-virtual {v3, v4}, Landroid/opengl/EGLSurface;->equals(Ljava/lang/Object;)Z move-result v3 if-nez v3, :cond_6 iget-object v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->display:Landroid/opengl/EGLDisplay; iget-object v4, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->surface:Landroid/opengl/EGLSurface; .line 96 invoke-static {v3, v4}, Landroid/opengl/EGL14;->eglDestroySurface(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLSurface;)Z :cond_6 iget-object v3, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->context:Landroid/opengl/EGLContext; if-eqz v3, :cond_7 iget-object v4, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->display:Landroid/opengl/EGLDisplay; .line 99 invoke-static {v4, v3}, Landroid/opengl/EGL14;->eglDestroyContext(Landroid/opengl/EGLDisplay;Landroid/opengl/EGLContext;)Z .line 102 :cond_7 sget v3, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Util;->SDK_INT:I if-lt v3, v0, :cond_8 .line 103 invoke-static {}, Landroid/opengl/EGL14;->eglReleaseThread()Z :cond_8 iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->display:Landroid/opengl/EGLDisplay; iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->context:Landroid/opengl/EGLContext; iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->surface:Landroid/opengl/EGLSurface; iput-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->texture:Landroid/graphics/SurfaceTexture; .line 109 throw v2 .end method .method public final run()V .locals 1 iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/util/EGLSurfaceTexture;->texture:Landroid/graphics/SurfaceTexture; if-eqz v0, :cond_0 .line 129 invoke-virtual {v0}, Landroid/graphics/SurfaceTexture;->updateTexImage()V :cond_0 return-void .end method