Files
vtosters/smali/smali_classes5/org/webrtc/videoengine/GLTextureView$DefaultContextFactory.smali
T

157 lines
4.6 KiB
Smali

.class Lorg/webrtc/videoengine/GLTextureView$DefaultContextFactory;
.super Ljava/lang/Object;
.source "GLTextureView.java"
# interfaces
.implements Lorg/webrtc/videoengine/GLTextureView$EGLContextFactory;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lorg/webrtc/videoengine/GLTextureView;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2
name = "DefaultContextFactory"
.end annotation
# instance fields
.field private EGL_CONTEXT_CLIENT_VERSION:I
.field final synthetic this$0:Lorg/webrtc/videoengine/GLTextureView;
# direct methods
.method private constructor <init>(Lorg/webrtc/videoengine/GLTextureView;)V
.locals 0
.line 1
iput-object p1, p0, Lorg/webrtc/videoengine/GLTextureView$DefaultContextFactory;->this$0:Lorg/webrtc/videoengine/GLTextureView;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/16 p1, 0x3098
.line 2
iput p1, p0, Lorg/webrtc/videoengine/GLTextureView$DefaultContextFactory;->EGL_CONTEXT_CLIENT_VERSION:I
return-void
.end method
.method synthetic constructor <init>(Lorg/webrtc/videoengine/GLTextureView;Lorg/webrtc/videoengine/GLTextureView$1;)V
.locals 0
.line 3
invoke-direct {p0, p1}, Lorg/webrtc/videoengine/GLTextureView$DefaultContextFactory;-><init>(Lorg/webrtc/videoengine/GLTextureView;)V
return-void
.end method
# virtual methods
.method public createContext(Ljavax/microedition/khronos/egl/EGL10;Ljavax/microedition/khronos/egl/EGLDisplay;Ljavax/microedition/khronos/egl/EGLConfig;)Ljavax/microedition/khronos/egl/EGLContext;
.locals 3
const/4 v0, 0x3
new-array v0, v0, [I
.line 1
iget v1, p0, Lorg/webrtc/videoengine/GLTextureView$DefaultContextFactory;->EGL_CONTEXT_CLIENT_VERSION:I
const/4 v2, 0x0
aput v1, v0, v2
iget-object v1, p0, Lorg/webrtc/videoengine/GLTextureView$DefaultContextFactory;->this$0:Lorg/webrtc/videoengine/GLTextureView;
invoke-static {v1}, Lorg/webrtc/videoengine/GLTextureView;->access$200(Lorg/webrtc/videoengine/GLTextureView;)I
move-result v1
const/4 v2, 0x1
aput v1, v0, v2
const/4 v1, 0x2
const/16 v2, 0x3038
aput v2, v0, v1
.line 2
sget-object v1, Ljavax/microedition/khronos/egl/EGL10;->EGL_NO_CONTEXT:Ljavax/microedition/khronos/egl/EGLContext;
iget-object v2, p0, Lorg/webrtc/videoengine/GLTextureView$DefaultContextFactory;->this$0:Lorg/webrtc/videoengine/GLTextureView;
.line 3
invoke-static {v2}, Lorg/webrtc/videoengine/GLTextureView;->access$200(Lorg/webrtc/videoengine/GLTextureView;)I
move-result v2
if-eqz v2, :cond_0
goto :goto_0
:cond_0
const/4 v0, 0x0
.line 4
:goto_0
invoke-interface {p1, p2, p3, v1, v0}, Ljavax/microedition/khronos/egl/EGL10;->eglCreateContext(Ljavax/microedition/khronos/egl/EGLDisplay;Ljavax/microedition/khronos/egl/EGLConfig;Ljavax/microedition/khronos/egl/EGLContext;[I)Ljavax/microedition/khronos/egl/EGLContext;
move-result-object p1
return-object p1
.end method
.method public destroyContext(Ljavax/microedition/khronos/egl/EGL10;Ljavax/microedition/khronos/egl/EGLDisplay;Ljavax/microedition/khronos/egl/EGLContext;)V
.locals 2
.line 1
invoke-interface {p1, p2, p3}, Ljavax/microedition/khronos/egl/EGL10;->eglDestroyContext(Ljavax/microedition/khronos/egl/EGLDisplay;Ljavax/microedition/khronos/egl/EGLContext;)Z
move-result v0
if-nez v0, :cond_0
.line 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "DefaultContextFactory.destroyContext display:"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string p2, " context: "
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
const-string p3, "GLTextureView"
invoke-static {p3, p2}, Le/c/a/Log;->a(Ljava/lang/String;Ljava/lang/String;)V
.line 3
invoke-interface {p1}, Ljavax/microedition/khronos/egl/EGL10;->eglGetError()I
move-result p1
const-string p2, "eglDestroyContex"
invoke-static {p2, p1}, Lorg/webrtc/videoengine/GLTextureView$EglHelper;->throwEglException(Ljava/lang/String;I)V
:cond_0
return-void
.end method