b.smali

.class public final Lcom/yysdk/mobile/sharedcontext/b;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/yysdk/mobile/sharedcontext/f;


# instance fields
.field a:Lcom/yysdk/mobile/sharedcontext/f;

.field final b:Z

.field final c:Lcom/yysdk/mobile/sharedcontext/d;


# direct methods
.method public constructor <init>(ZZLcom/yysdk/mobile/sharedcontext/d;)V
    .registers 4

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

    .line 21
    iput-boolean p1, p0, Lcom/yysdk/mobile/sharedcontext/b;->b:Z

    .line 22
    iput-object p3, p0, Lcom/yysdk/mobile/sharedcontext/b;->c:Lcom/yysdk/mobile/sharedcontext/d;

    if-eqz p2, :cond_11

    .line 24
    new-instance p2, Lcom/yysdk/mobile/sharedcontext/h;

    invoke-direct {p2, p1, p3}, Lcom/yysdk/mobile/sharedcontext/h;-><init>(ZLcom/yysdk/mobile/sharedcontext/d;)V

    iput-object p2, p0, Lcom/yysdk/mobile/sharedcontext/b;->a:Lcom/yysdk/mobile/sharedcontext/f;

    return-void

    .line 26
    :cond_11
    new-instance p2, Lcom/yysdk/mobile/sharedcontext/c;

    invoke-direct {p2, p1, p3}, Lcom/yysdk/mobile/sharedcontext/c;-><init>(ZLcom/yysdk/mobile/sharedcontext/d;)V

    iput-object p2, p0, Lcom/yysdk/mobile/sharedcontext/b;->a:Lcom/yysdk/mobile/sharedcontext/f;

    return-void
.end method


# virtual methods
.method public final a(Landroid/view/SurfaceHolder;)V
    .registers 3

    .line 57
    iget-object v0, p0, Lcom/yysdk/mobile/sharedcontext/b;->a:Lcom/yysdk/mobile/sharedcontext/f;

    invoke-interface {v0, p1}, Lcom/yysdk/mobile/sharedcontext/f;->a(Landroid/view/SurfaceHolder;)V

    return-void
.end method

.method public final a()Z
    .registers 4

    .line 32
    iget-object v0, p0, Lcom/yysdk/mobile/sharedcontext/b;->a:Lcom/yysdk/mobile/sharedcontext/f;

    invoke-interface {v0}, Lcom/yysdk/mobile/sharedcontext/f;->a()Z

    move-result v0

    if-nez v0, :cond_1d

    const-string v0, "ContentValues"

    const-string v1, "ShareContext onEnterGLThread fail, create ExclusiveContext"

    .line 33
    invoke-static {v0, v1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 34
    new-instance v0, Lcom/yysdk/mobile/sharedcontext/c;

    iget-boolean v1, p0, Lcom/yysdk/mobile/sharedcontext/b;->b:Z

    iget-object v2, p0, Lcom/yysdk/mobile/sharedcontext/b;->c:Lcom/yysdk/mobile/sharedcontext/d;

    invoke-direct {v0, v1, v2}, Lcom/yysdk/mobile/sharedcontext/c;-><init>(ZLcom/yysdk/mobile/sharedcontext/d;)V

    iput-object v0, p0, Lcom/yysdk/mobile/sharedcontext/b;->a:Lcom/yysdk/mobile/sharedcontext/f;

    .line 35
    invoke-interface {v0}, Lcom/yysdk/mobile/sharedcontext/f;->a()Z

    :cond_1d
    const/4 v0, 0x1

    return v0
.end method

.method public final b()V
    .registers 2

    .line 42
    iget-object v0, p0, Lcom/yysdk/mobile/sharedcontext/b;->a:Lcom/yysdk/mobile/sharedcontext/f;

    invoke-interface {v0}, Lcom/yysdk/mobile/sharedcontext/f;->b()V

    return-void
.end method

.method public final c()I
    .registers 2

    .line 47
    iget-object v0, p0, Lcom/yysdk/mobile/sharedcontext/b;->a:Lcom/yysdk/mobile/sharedcontext/f;

    invoke-interface {v0}, Lcom/yysdk/mobile/sharedcontext/f;->c()I

    move-result v0

    return v0
.end method

.method public final d()V
    .registers 2

    .line 52
    iget-object v0, p0, Lcom/yysdk/mobile/sharedcontext/b;->a:Lcom/yysdk/mobile/sharedcontext/f;

    invoke-interface {v0}, Lcom/yysdk/mobile/sharedcontext/f;->d()V

    return-void
.end method

.method public final e()Z
    .registers 2

    .line 62
    iget-object v0, p0, Lcom/yysdk/mobile/sharedcontext/b;->a:Lcom/yysdk/mobile/sharedcontext/f;

    invoke-interface {v0}, Lcom/yysdk/mobile/sharedcontext/f;->e()Z

    move-result v0

    return v0
.end method