d.smali

.class public final synthetic Lcom/tencent/liteav/videobase/egl/d;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field private final a:Lcom/tencent/liteav/videobase/egl/c;


# direct methods
.method private constructor <init>(Lcom/tencent/liteav/videobase/egl/c;)V
    .registers 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lcom/tencent/liteav/videobase/egl/d;->a:Lcom/tencent/liteav/videobase/egl/c;

    return-void
.end method

.method public static a(Lcom/tencent/liteav/videobase/egl/c;)Ljava/lang/Runnable;
    .registers 2

    new-instance v0, Lcom/tencent/liteav/videobase/egl/d;

    invoke-direct {v0, p0}, Lcom/tencent/liteav/videobase/egl/d;-><init>(Lcom/tencent/liteav/videobase/egl/c;)V

    return-object v0
.end method


# virtual methods
.method public final run()V
    .registers 5

    iget-object v0, p0, Lcom/tencent/liteav/videobase/egl/d;->a:Lcom/tencent/liteav/videobase/egl/c;

    .line 1114
    iget-object v1, v0, Lcom/tencent/liteav/videobase/egl/c;->d:Lcom/tencent/liteav/videobase/egl/EGLCore;

    if-eqz v1, :cond_2c

    .line 1119
    :try_start_6
    iget-object v1, v0, Lcom/tencent/liteav/videobase/egl/c;->d:Lcom/tencent/liteav/videobase/egl/EGLCore;

    invoke-virtual {v1}, Lcom/tencent/liteav/videobase/egl/EGLCore;->makeCurrent()V

    .line 1120
    iget-object v1, v0, Lcom/tencent/liteav/videobase/egl/c;->b:Ljava/util/concurrent/atomic/AtomicInteger;

    const/4 v2, -0x1

    invoke-virtual {v1, v2}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndSet(I)I

    move-result v1

    invoke-static {v1}, Lcom/tencent/liteav/videobase/utils/OpenGlUtils;->deleteShaderId(I)V
    :try_end_15
    .catch Lcom/tencent/liteav/videobase/egl/f; {:try_start_6 .. :try_end_15} :catch_16

    goto :goto_24

    :catch_16
    move-exception v1

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    aput-object v1, v2, v3

    const-string v1, "EGLContextChecker"

    const-string v3, "release EGLCore failed."

    .line 1122
    invoke-static {v1, v3, v2}, Lcom/tencent/liteav/base/util/LiteavLog;->i(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V

    .line 1125
    :goto_24
    iget-object v1, v0, Lcom/tencent/liteav/videobase/egl/c;->d:Lcom/tencent/liteav/videobase/egl/EGLCore;

    invoke-static {v1}, Lcom/tencent/liteav/videobase/egl/EGLCore;->destroy(Lcom/tencent/liteav/videobase/egl/EGLCore;)V

    const/4 v1, 0x0

    .line 1126
    iput-object v1, v0, Lcom/tencent/liteav/videobase/egl/c;->d:Lcom/tencent/liteav/videobase/egl/EGLCore;

    :cond_2c
    return-void
.end method