.class public Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;
.super Landroid/view/TextureView;
.source "GLTextureView.java"

# interfaces
.implements Landroid/view/TextureView$SurfaceTextureListener;
.implements Landroid/view/View$OnLayoutChangeListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;,
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$LogWriter;,
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;,
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;,
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$SimpleEGLConfigChooser;,
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$ComponentSizeChooser;,
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$BaseConfigChooser;,
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLConfigChooser;,
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$DefaultWindowSurfaceFactory;,
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLWindowSurfaceFactory;,
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$DefaultContextFactory;,
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLContextFactory;,
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$Renderer;,
        Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLWrapper;
    }
.end annotation


# static fields
.field private static final a:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;


# instance fields
.field private final b:Ljava/lang/ref/WeakReference;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ref/WeakReference<",
            "Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;",
            ">;"
        }
    .end annotation
.end field

.field private c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

.field private d:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$Renderer;

.field private e:Z

.field private f:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLConfigChooser;

.field private g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLContextFactory;

.field private h:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLWindowSurfaceFactory;

.field private i:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLWrapper;

.field private j:I

.field private k:I

.field private l:Z


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .line 1823
    new-instance v0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;-><init>(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$1;)V

    sput-object v0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->a:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 219
    invoke-direct {p0, p1}, Landroid/view/TextureView;-><init>(Landroid/content/Context;)V

    .line 1824
    new-instance p1, Ljava/lang/ref/WeakReference;

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

    iput-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->b:Ljava/lang/ref/WeakReference;

    .line 220
    invoke-direct {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->e()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    .line 227
    invoke-direct {p0, p1, p2}, Landroid/view/TextureView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 1824
    new-instance p1, Ljava/lang/ref/WeakReference;

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

    iput-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->b:Ljava/lang/ref/WeakReference;

    .line 228
    invoke-direct {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->e()V

    return-void
.end method

.method static synthetic a(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;)I
    .locals 0

    .line 170
    iget p0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->k:I

    return p0
.end method

.method static synthetic b(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;)Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLConfigChooser;
    .locals 0

    .line 170
    iget-object p0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->f:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLConfigChooser;

    return-object p0
.end method

.method static synthetic c(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;)Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLContextFactory;
    .locals 0

    .line 170
    iget-object p0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLContextFactory;

    return-object p0
.end method

.method static synthetic d(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;)Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLWindowSurfaceFactory;
    .locals 0

    .line 170
    iget-object p0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->h:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLWindowSurfaceFactory;

    return-object p0
.end method

.method static synthetic d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
    .locals 1

    .line 170
    sget-object v0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->a:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;

    return-object v0
.end method

.method static synthetic e(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;)Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLWrapper;
    .locals 0

    .line 170
    iget-object p0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->i:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLWrapper;

    return-object p0
.end method

.method private e()V
    .locals 0

    .line 255
    invoke-virtual {p0, p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->setSurfaceTextureListener(Landroid/view/TextureView$SurfaceTextureListener;)V

    return-void
.end method

.method static synthetic f(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;)I
    .locals 0

    .line 170
    iget p0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->j:I

    return p0
.end method

.method private f()V
    .locals 2

    .line 1712
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    if-nez v0, :cond_0

    return-void

    .line 1713
    :cond_0
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "setRenderer has already been called for this instance."

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method static synthetic g(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;)Z
    .locals 0

    .line 170
    iget-boolean p0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->l:Z

    return p0
.end method

.method static synthetic h(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;)Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$Renderer;
    .locals 0

    .line 170
    iget-object p0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$Renderer;

    return-object p0
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 505
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->c()V

    return-void
.end method

.method public a(IIIIII)V
    .locals 9

    .line 435
    new-instance v8, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$ComponentSizeChooser;

    move-object v0, v8

    move-object v1, p0

    move v2, p1

    move v3, p2

    move v4, p3

    move v5, p4

    move v6, p5

    move v7, p6

    invoke-direct/range {v0 .. v7}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$ComponentSizeChooser;-><init>(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;IIIIII)V

    invoke-virtual {p0, v8}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->setEGLConfigChooser(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLConfigChooser;)V

    return-void
.end method

.method public a(Landroid/graphics/SurfaceTexture;)V
    .locals 0

    .line 518
    iget-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {p1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->d()V

    return-void
.end method

.method public a(Landroid/graphics/SurfaceTexture;III)V
    .locals 0

    .line 542
    iget-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {p1, p3, p4}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->a(II)V

    return-void
.end method

.method public b()V
    .locals 1

    .line 560
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->f()V

    return-void
.end method

.method public b(Landroid/graphics/SurfaceTexture;)V
    .locals 0

    .line 532
    iget-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {p1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->e()V

    return-void
.end method

.method public c()V
    .locals 1

    .line 570
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->g()V

    return-void
.end method

.method protected finalize()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Throwable;
        }
    .end annotation

    .line 233
    :try_start_0
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    if-eqz v0, :cond_0

    .line 236
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->h()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 239
    :cond_0
    invoke-super {p0}, Ljava/lang/Object;->finalize()V

    return-void

    :catchall_0
    move-exception v0

    invoke-super {p0}, Ljava/lang/Object;->finalize()V

    .line 240
    throw v0
.end method

.method public getDebugFlags()I
    .locals 1

    .line 290
    iget v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->j:I

    return v0
.end method

.method public getPreserveEGLContextOnPause()Z
    .locals 1

    .line 317
    iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->l:Z

    return v0
.end method

.method public getRenderMode()I
    .locals 1

    .line 495
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->b()I

    move-result v0

    return v0
.end method

.method protected onAttachedToWindow()V
    .locals 4

    .line 587
    invoke-super {p0}, Landroid/view/TextureView;->onAttachedToWindow()V

    .line 591
    iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->e:Z

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$Renderer;

    if-eqz v0, :cond_2

    .line 593
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    .line 594
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->b()I

    move-result v0

    goto :goto_0

    :cond_0
    const/4 v0, 0x1

    .line 596
    :goto_0
    new-instance v2, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    iget-object v3, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->b:Ljava/lang/ref/WeakReference;

    invoke-direct {v2, v3}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;-><init>(Ljava/lang/ref/WeakReference;)V

    iput-object v2, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    if-eq v0, v1, :cond_1

    .line 598
    iget-object v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {v1, v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->a(I)V

    .line 600
    :cond_1
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->start()V

    :cond_2
    const/4 v0, 0x0

    .line 602
    iput-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->e:Z

    return-void
.end method

.method protected onDetachedFromWindow()V
    .locals 1

    .line 609
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    if-eqz v0, :cond_0

    .line 610
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->h()V

    :cond_0
    const/4 v0, 0x1

    .line 612
    iput-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->e:Z

    .line 613
    invoke-super {p0}, Landroid/view/TextureView;->onDetachedFromWindow()V

    return-void
.end method

.method public onLayoutChange(Landroid/view/View;IIIIIIII)V
    .locals 0

    .line 550
    invoke-virtual {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->getSurfaceTexture()Landroid/graphics/SurfaceTexture;

    move-result-object p1

    sub-int/2addr p4, p2

    sub-int/2addr p5, p3

    const/4 p2, 0x0

    invoke-virtual {p0, p1, p2, p4, p5}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->a(Landroid/graphics/SurfaceTexture;III)V

    return-void
.end method

.method public onSurfaceTextureAvailable(Landroid/graphics/SurfaceTexture;II)V
    .locals 1

    .line 522
    invoke-virtual {p0, p1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->a(Landroid/graphics/SurfaceTexture;)V

    const/4 v0, 0x0

    .line 523
    invoke-virtual {p0, p1, v0, p2, p3}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->a(Landroid/graphics/SurfaceTexture;III)V

    return-void
.end method

.method public onSurfaceTextureDestroyed(Landroid/graphics/SurfaceTexture;)Z
    .locals 0

    .line 535
    invoke-virtual {p0, p1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->b(Landroid/graphics/SurfaceTexture;)V

    const/4 p1, 0x1

    return p1
.end method

.method public onSurfaceTextureSizeChanged(Landroid/graphics/SurfaceTexture;II)V
    .locals 1

    const/4 v0, 0x0

    .line 545
    invoke-virtual {p0, p1, v0, p2, p3}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->a(Landroid/graphics/SurfaceTexture;III)V

    return-void
.end method

.method public onSurfaceTextureUpdated(Landroid/graphics/SurfaceTexture;)V
    .locals 0

    .line 510
    invoke-virtual {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->a()V

    return-void
.end method

.method public setDebugFlags(I)V
    .locals 0

    .line 283
    iput p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->j:I

    return-void
.end method

.method public setEGLConfigChooser(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLConfigChooser;)V
    .locals 0

    .line 400
    invoke-direct {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->f()V

    .line 401
    iput-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->f:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLConfigChooser;

    return-void
.end method

.method public setEGLConfigChooser(Z)V
    .locals 1

    .line 418
    new-instance v0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$SimpleEGLConfigChooser;

    invoke-direct {v0, p0, p1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$SimpleEGLConfigChooser;-><init>(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;Z)V

    invoke-virtual {p0, v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->setEGLConfigChooser(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLConfigChooser;)V

    return-void
.end method

.method public setEGLContextClientVersion(I)V
    .locals 0

    .line 465
    invoke-direct {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->f()V

    .line 466
    iput p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->k:I

    return-void
.end method

.method public setEGLContextFactory(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLContextFactory;)V
    .locals 0

    .line 371
    invoke-direct {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->f()V

    .line 372
    iput-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLContextFactory;

    return-void
.end method

.method public setEGLWindowSurfaceFactory(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLWindowSurfaceFactory;)V
    .locals 0

    .line 384
    invoke-direct {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->f()V

    .line 385
    iput-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->h:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLWindowSurfaceFactory;

    return-void
.end method

.method public setGLWrapper(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLWrapper;)V
    .locals 0

    .line 271
    iput-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->i:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLWrapper;

    return-void
.end method

.method public setPreserveEGLContextOnPause(Z)V
    .locals 0

    .line 311
    iput-boolean p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->l:Z

    return-void
.end method

.method public setRenderMode(I)V
    .locals 1

    .line 485
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {v0, p1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->a(I)V

    return-void
.end method

.method public setRenderer(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$Renderer;)V
    .locals 2

    .line 346
    invoke-direct {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->f()V

    .line 347
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->f:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLConfigChooser;

    if-nez v0, :cond_0

    .line 348
    new-instance v0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$SimpleEGLConfigChooser;

    const/4 v1, 0x1

    invoke-direct {v0, p0, v1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$SimpleEGLConfigChooser;-><init>(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;Z)V

    iput-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->f:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLConfigChooser;

    .line 350
    :cond_0
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLContextFactory;

    const/4 v1, 0x0

    if-nez v0, :cond_1

    .line 351
    new-instance v0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$DefaultContextFactory;

    invoke-direct {v0, p0, v1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$DefaultContextFactory;-><init>(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$1;)V

    iput-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLContextFactory;

    .line 353
    :cond_1
    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->h:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLWindowSurfaceFactory;

    if-nez v0, :cond_2

    .line 354
    new-instance v0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$DefaultWindowSurfaceFactory;

    invoke-direct {v0, v1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$DefaultWindowSurfaceFactory;-><init>(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$1;)V

    iput-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->h:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EGLWindowSurfaceFactory;

    .line 356
    :cond_2
    iput-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$Renderer;

    .line 357
    new-instance p1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->b:Ljava/lang/ref/WeakReference;

    invoke-direct {p1, v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;-><init>(Ljava/lang/ref/WeakReference;)V

    iput-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    .line 358
    iget-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->c:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;

    invoke-virtual {p1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->start()V

    return-void
.end method
