.class public final Lcom/camerakit/preview/CameraSurfaceView; .super Landroid/opengl/GLSurfaceView; .source "CameraSurfaceView.kt" # interfaces .implements Landroid/opengl/GLSurfaceView$Renderer; # instance fields .field public d:Le/g/i/a; .field public e:Lcom/camerakit/preview/CameraSurfaceTexture; .field public nativeHandle:J .annotation build Landroidx/annotation/Keep; .end annotation .end field # direct methods .method public static constructor ()V .locals 1 const-string v0, "camerakit" invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V return-void .end method .method public constructor (Landroid/content/Context;)V .locals 0 if-eqz p1, :cond_0 invoke-direct {p0, p1}, Landroid/opengl/GLSurfaceView;->(Landroid/content/Context;)V const/4 p1, 0x2 invoke-virtual {p0, p1}, Landroid/opengl/GLSurfaceView;->setEGLContextClientVersion(I)V invoke-virtual {p0, p0}, Landroid/opengl/GLSurfaceView;->setRenderer(Landroid/opengl/GLSurfaceView$Renderer;)V const/4 p1, 0x0 invoke-virtual {p0, p1}, Landroid/opengl/GLSurfaceView;->setRenderMode(I)V invoke-direct {p0}, Lcom/camerakit/preview/CameraSurfaceView;->nativeInit()V return-void :cond_0 const-string p1, "context" invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method .method private final native nativeDrawTexture(III)V .end method .method private final native nativeFinalize()V .end method .method private final native nativeInit()V .end method .method private final native nativeOnDrawFrame()V .end method .method private final native nativeOnSurfaceChanged(II)V .end method .method private final native nativeOnSurfaceCreated()V .end method .method private final native nativeRelease()V .end method # virtual methods .method public finalize()V .locals 0 .annotation build Landroidx/annotation/Keep; .end annotation invoke-super {p0}, Landroid/opengl/GLSurfaceView;->finalize()V :try_start_0 invoke-direct {p0}, Lcom/camerakit/preview/CameraSurfaceView;->nativeFinalize()V :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 :catch_0 return-void .end method .method public final getCameraSurfaceTextureListener()Le/g/i/a; .locals 1 iget-object v0, p0, Lcom/camerakit/preview/CameraSurfaceView;->d:Le/g/i/a; return-object v0 .end method .method public onDrawFrame(Ljavax/microedition/khronos/opengles/GL10;)V .locals 2 if-eqz p1, :cond_1 iget-object p1, p0, Lcom/camerakit/preview/CameraSurfaceView;->e:Lcom/camerakit/preview/CameraSurfaceTexture; if-eqz p1, :cond_0 invoke-direct {p0}, Lcom/camerakit/preview/CameraSurfaceView;->nativeOnDrawFrame()V invoke-virtual {p1}, Lcom/camerakit/preview/CameraSurfaceTexture;->updateTexImage()V invoke-virtual {p1}, Lcom/camerakit/preview/CameraSurfaceTexture;->a()I move-result v0 invoke-virtual {p1}, Lcom/camerakit/preview/CameraSurfaceTexture;->b()Le/g/j/c; move-result-object v1 iget v1, v1, Le/g/j/c;->d:I invoke-virtual {p1}, Lcom/camerakit/preview/CameraSurfaceTexture;->b()Le/g/j/c; move-result-object p1 iget p1, p1, Le/g/j/c;->e:I invoke-direct {p0, v0, v1, p1}, Lcom/camerakit/preview/CameraSurfaceView;->nativeDrawTexture(III)V :cond_0 return-void :cond_1 const-string p1, "gl" invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method .method public onPause()V .locals 0 invoke-super {p0}, Landroid/opengl/GLSurfaceView;->onPause()V return-void .end method .method public onResume()V .locals 0 invoke-super {p0}, Landroid/opengl/GLSurfaceView;->onResume()V return-void .end method .method public onSurfaceChanged(Ljavax/microedition/khronos/opengles/GL10;II)V .locals 0 if-eqz p1, :cond_0 invoke-direct {p0, p2, p3}, Lcom/camerakit/preview/CameraSurfaceView;->nativeOnSurfaceChanged(II)V return-void :cond_0 const-string p1, "gl" invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method .method public onSurfaceCreated(Ljavax/microedition/khronos/opengles/GL10;Ljavax/microedition/khronos/egl/EGLConfig;)V .locals 2 const/4 v0, 0x0 if-eqz p1, :cond_1 if-eqz p2, :cond_0 new-instance p1, Lcom/camerakit/preview/CameraSurfaceView$a; invoke-direct {p1, p0}, Lcom/camerakit/preview/CameraSurfaceView$a;->(Lcom/camerakit/preview/CameraSurfaceView;)V const/4 p2, 0x2 new-array v0, p2, [I const/4 v1, 0x0 invoke-static {p2, v0, v1}, Landroid/opengl/GLES20;->glGenTextures(I[II)V aget p2, v0, v1 invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p2 const/4 v1, 0x1 aget v0, v0, v1 invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v0 invoke-interface {p1, p2, v0}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; invoke-direct {p0}, Lcom/camerakit/preview/CameraSurfaceView;->nativeOnSurfaceCreated()V return-void :cond_0 const-string p1, "config" invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V throw v0 :cond_1 const-string p1, "gl" invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V throw v0 .end method .method public final setCameraSurfaceTextureListener(Le/g/i/a;)V .locals 0 iput-object p1, p0, Lcom/camerakit/preview/CameraSurfaceView;->d:Le/g/i/a; return-void .end method