1783 lines
47 KiB
Smali
1783 lines
47 KiB
Smali
.class Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;
|
|
.super Ljava/lang/Thread;
|
|
.source "GLTextureView.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = "GLThread"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Z
|
|
|
|
.field private b:Z
|
|
|
|
.field private c:Z
|
|
|
|
.field private d:Z
|
|
|
|
.field private e:Z
|
|
|
|
.field private f:Z
|
|
|
|
.field private g:Z
|
|
|
|
.field private h:Z
|
|
|
|
.field private i:Z
|
|
|
|
.field private j:Z
|
|
|
|
.field private k:Z
|
|
|
|
.field private l:I
|
|
|
|
.field private m:I
|
|
|
|
.field private n:I
|
|
|
|
.field private o:Z
|
|
|
|
.field private p:Z
|
|
|
|
.field private q:Ljava/util/ArrayList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/ArrayList<",
|
|
"Ljava/lang/Runnable;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private r:Z
|
|
|
|
.field private s:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;
|
|
|
|
.field private t: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
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Ljava/lang/ref/WeakReference;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1172
|
|
invoke-direct {p0}, Ljava/lang/Thread;-><init>()V
|
|
|
|
.line 1671
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->q:Ljava/util/ArrayList;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1672
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->r:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 1173
|
|
iput v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->l:I
|
|
|
|
.line 1174
|
|
iput v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->m:I
|
|
|
|
.line 1175
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->o:Z
|
|
|
|
.line 1176
|
|
iput v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->n:I
|
|
|
|
.line 1177
|
|
iput-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->t:Ljava/lang/ref/WeakReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;Z)Z
|
|
.locals 0
|
|
|
|
.line 1170
|
|
iput-boolean p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->b:Z
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private j()V
|
|
.locals 1
|
|
|
|
.line 1198
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->i:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1199
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->i:Z
|
|
|
|
.line 1200
|
|
iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->s:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;
|
|
|
|
invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;->e()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private k()V
|
|
.locals 1
|
|
|
|
.line 1208
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->h:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 1209
|
|
iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->s:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;
|
|
|
|
invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;->f()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1210
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->h:Z
|
|
|
|
.line 1211
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->c(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private l()V
|
|
.locals 16
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/InterruptedException;
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
.line 1215
|
|
new-instance v0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;
|
|
|
|
iget-object v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->t:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {v0, v2}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;-><init>(Ljava/lang/ref/WeakReference;)V
|
|
|
|
iput-object v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->s:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1216
|
|
iput-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->h:Z
|
|
|
|
.line 1217
|
|
iput-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->i:Z
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
.line 1232
|
|
:goto_0
|
|
:try_start_0
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v15
|
|
|
|
monitor-enter v15
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_5
|
|
|
|
.line 1234
|
|
:goto_1
|
|
:try_start_1
|
|
iget-boolean v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->a:Z
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 1235
|
|
monitor-exit v15
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_4
|
|
|
|
.line 1489
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v2
|
|
|
|
monitor-enter v2
|
|
|
|
.line 1490
|
|
:try_start_2
|
|
invoke-direct/range {p0 .. p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->j()V
|
|
|
|
.line 1491
|
|
invoke-direct/range {p0 .. p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->k()V
|
|
|
|
.line 1492
|
|
monitor-exit v2
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit v2
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw v0
|
|
|
|
.line 1237
|
|
:cond_0
|
|
:try_start_3
|
|
iget-object v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->q:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {v2}, Ljava/util/ArrayList;->isEmpty()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
.line 1238
|
|
iget-object v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->q:Ljava/util/ArrayList;
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-virtual {v2, v9}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/Runnable;
|
|
|
|
move-object v9, v2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto/16 :goto_7
|
|
|
|
.line 1243
|
|
:cond_1
|
|
iget-boolean v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->d:Z
|
|
|
|
iget-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->c:Z
|
|
|
|
if-eq v2, v0, :cond_2
|
|
|
|
.line 1244
|
|
iget-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->c:Z
|
|
|
|
.line 1245
|
|
iget-boolean v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->c:Z
|
|
|
|
iput-boolean v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->d:Z
|
|
|
|
.line 1246
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v0, 0x0
|
|
|
|
.line 1252
|
|
:goto_2
|
|
iget-boolean v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->k:Z
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 1256
|
|
invoke-direct/range {p0 .. p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->j()V
|
|
|
|
.line 1257
|
|
invoke-direct/range {p0 .. p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->k()V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 1258
|
|
iput-boolean v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->k:Z
|
|
|
|
const/4 v4, 0x1
|
|
|
|
:cond_3
|
|
if-eqz v5, :cond_4
|
|
|
|
.line 1263
|
|
invoke-direct/range {p0 .. p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->j()V
|
|
|
|
.line 1264
|
|
invoke-direct/range {p0 .. p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->k()V
|
|
|
|
const/4 v5, 0x0
|
|
|
|
:cond_4
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 1268
|
|
iget-boolean v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->i:Z
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
.line 1272
|
|
invoke-direct/range {p0 .. p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->j()V
|
|
|
|
:cond_5
|
|
if-eqz v0, :cond_8
|
|
|
|
.line 1275
|
|
iget-boolean v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->h:Z
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
.line 1276
|
|
iget-object v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->t:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;
|
|
|
|
if-nez v2, :cond_6
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
.line 1278
|
|
:cond_6
|
|
invoke-static {v2}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->g(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;)Z
|
|
|
|
move-result v2
|
|
|
|
:goto_3
|
|
if-eqz v2, :cond_7
|
|
|
|
.line 1279
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->a()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
.line 1280
|
|
:cond_7
|
|
invoke-direct/range {p0 .. p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->k()V
|
|
|
|
:cond_8
|
|
if-eqz v0, :cond_9
|
|
|
|
.line 1288
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->b()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
.line 1289
|
|
iget-object v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->s:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;
|
|
|
|
invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;->f()V
|
|
|
|
.line 1296
|
|
:cond_9
|
|
iget-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->e:Z
|
|
|
|
if-nez v0, :cond_b
|
|
|
|
iget-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->g:Z
|
|
|
|
if-nez v0, :cond_b
|
|
|
|
.line 1300
|
|
iget-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->i:Z
|
|
|
|
if-eqz v0, :cond_a
|
|
|
|
.line 1301
|
|
invoke-direct/range {p0 .. p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->j()V
|
|
|
|
:cond_a
|
|
const/4 v0, 0x1
|
|
|
|
.line 1303
|
|
iput-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->g:Z
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1304
|
|
iput-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->f:Z
|
|
|
|
.line 1305
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 1308
|
|
:cond_b
|
|
iget-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->e:Z
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
iget-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->g:Z
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1312
|
|
iput-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->g:Z
|
|
|
|
.line 1313
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
:cond_c
|
|
if-eqz v3, :cond_d
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1321
|
|
iput-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->p:Z
|
|
|
|
.line 1322
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
.line 1325
|
|
:cond_d
|
|
invoke-direct/range {p0 .. p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->m()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1f
|
|
|
|
.line 1327
|
|
iget-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->h:Z
|
|
|
|
if-nez v0, :cond_f
|
|
|
|
if-eqz v4, :cond_e
|
|
|
|
const/4 v4, 0x0
|
|
|
|
goto :goto_4
|
|
|
|
.line 1330
|
|
:cond_e
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->b(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;)Z
|
|
|
|
move-result v0
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_4
|
|
|
|
if-eqz v0, :cond_f
|
|
|
|
.line 1332
|
|
:try_start_4
|
|
iget-object v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->s:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;
|
|
|
|
invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;->a()V
|
|
:try_end_4
|
|
.catch Ljava/lang/RuntimeException; {:try_start_4 .. :try_end_4} :catch_0
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1337
|
|
:try_start_5
|
|
iput-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->h:Z
|
|
|
|
.line 1339
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
const/4 v10, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 1334
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->c(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;)V
|
|
|
|
.line 1335
|
|
throw v0
|
|
|
|
.line 1342
|
|
:cond_f
|
|
:goto_4
|
|
iget-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->h:Z
|
|
|
|
if-eqz v0, :cond_10
|
|
|
|
iget-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->i:Z
|
|
|
|
if-nez v0, :cond_10
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1343
|
|
iput-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->i:Z
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v12, 0x1
|
|
|
|
const/4 v13, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_10
|
|
move v0, v11
|
|
|
|
.line 1348
|
|
:goto_5
|
|
iget-boolean v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->i:Z
|
|
|
|
if-eqz v2, :cond_1e
|
|
|
|
.line 1349
|
|
iget-boolean v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->r:Z
|
|
|
|
if-eqz v2, :cond_11
|
|
|
|
.line 1351
|
|
iget v7, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->l:I
|
|
|
|
.line 1352
|
|
iget v8, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->m:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 1361
|
|
iput-boolean v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->r:Z
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v13, 0x1
|
|
|
|
const/4 v14, 0x1
|
|
|
|
goto :goto_6
|
|
|
|
:cond_11
|
|
const/4 v2, 0x0
|
|
|
|
.line 1363
|
|
:goto_6
|
|
iput-boolean v2, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->o:Z
|
|
|
|
.line 1364
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v11
|
|
|
|
invoke-virtual {v11}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
move v11, v0
|
|
|
|
.line 1385
|
|
:goto_7
|
|
monitor-exit v15
|
|
:try_end_5
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_4
|
|
|
|
if-eqz v9, :cond_12
|
|
|
|
.line 1387
|
|
:try_start_6
|
|
invoke-interface {v9}, Ljava/lang/Runnable;->run()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_12
|
|
if-eqz v11, :cond_15
|
|
|
|
.line 1395
|
|
iget-object v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->s:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;
|
|
|
|
invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;->b()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_13
|
|
|
|
.line 1396
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v11
|
|
|
|
monitor-enter v11
|
|
:try_end_6
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_5
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1397
|
|
:try_start_7
|
|
iput-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->j:Z
|
|
|
|
.line 1398
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 1399
|
|
monitor-exit v11
|
|
|
|
const/4 v11, 0x0
|
|
|
|
goto :goto_9
|
|
|
|
:catchall_1
|
|
move-exception v0
|
|
|
|
monitor-exit v11
|
|
:try_end_7
|
|
.catchall {:try_start_7 .. :try_end_7} :catchall_1
|
|
|
|
:try_start_8
|
|
throw v0
|
|
|
|
.line 1401
|
|
:cond_13
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v15
|
|
|
|
monitor-enter v15
|
|
:try_end_8
|
|
.catchall {:try_start_8 .. :try_end_8} :catchall_5
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1402
|
|
:try_start_9
|
|
iput-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->j:Z
|
|
|
|
.line 1403
|
|
iput-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->f:Z
|
|
|
|
.line 1404
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 1405
|
|
monitor-exit v15
|
|
|
|
:cond_14
|
|
:goto_8
|
|
const/4 v0, 0x0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:catchall_2
|
|
move-exception v0
|
|
|
|
monitor-exit v15
|
|
:try_end_9
|
|
.catchall {:try_start_9 .. :try_end_9} :catchall_2
|
|
|
|
:try_start_a
|
|
throw v0
|
|
|
|
:cond_15
|
|
:goto_9
|
|
if-eqz v12, :cond_16
|
|
|
|
.line 1411
|
|
iget-object v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->s:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;
|
|
|
|
invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;->c()Ljavax/microedition/khronos/opengles/GL;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljavax/microedition/khronos/opengles/GL10;
|
|
|
|
.line 1412
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6, v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->a(Ljavax/microedition/khronos/opengles/GL10;)V
|
|
|
|
move-object v6, v0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
:cond_16
|
|
if-eqz v10, :cond_18
|
|
|
|
.line 1419
|
|
iget-object v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->t:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;
|
|
|
|
if-eqz v0, :cond_17
|
|
|
|
.line 1423
|
|
invoke-static {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->h(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;)Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$Renderer;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v10, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->s:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;
|
|
|
|
iget-object v10, v10, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;->d:Ljavax/microedition/khronos/egl/EGLConfig;
|
|
|
|
invoke-interface {v0, v6, v10}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$Renderer;->a(Ljavax/microedition/khronos/opengles/GL10;Ljavax/microedition/khronos/egl/EGLConfig;)V
|
|
|
|
:cond_17
|
|
const/4 v10, 0x0
|
|
|
|
:cond_18
|
|
if-eqz v13, :cond_1a
|
|
|
|
.line 1434
|
|
iget-object v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->t:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;
|
|
|
|
if-eqz v0, :cond_19
|
|
|
|
.line 1438
|
|
invoke-static {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->h(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;)Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$Renderer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0, v6, v7, v8}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$Renderer;->a(Ljavax/microedition/khronos/opengles/GL10;II)V
|
|
|
|
:cond_19
|
|
const/4 v13, 0x0
|
|
|
|
.line 1449
|
|
:cond_1a
|
|
iget-object v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->t:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;
|
|
|
|
if-eqz v0, :cond_1b
|
|
|
|
.line 1453
|
|
invoke-static {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->h(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;)Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$Renderer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0, v6}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$Renderer;->a(Ljavax/microedition/khronos/opengles/GL10;)V
|
|
|
|
.line 1459
|
|
:cond_1b
|
|
iget-object v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->s:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;
|
|
|
|
invoke-virtual {v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;->d()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v15, 0x3000
|
|
|
|
if-eq v0, v15, :cond_1d
|
|
|
|
const/16 v15, 0x300e
|
|
|
|
if-eq v0, v15, :cond_1c
|
|
|
|
const-string v15, "GLThread"
|
|
|
|
const-string v2, "eglSwapBuffers"
|
|
|
|
.line 1474
|
|
invoke-static {v15, v2, v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$EglHelper;->a(Ljava/lang/String;Ljava/lang/String;I)V
|
|
|
|
.line 1475
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v2
|
|
|
|
monitor-enter v2
|
|
:try_end_a
|
|
.catchall {:try_start_a .. :try_end_a} :catchall_5
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1476
|
|
:try_start_b
|
|
iput-boolean v0, v1, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->f:Z
|
|
|
|
.line 1477
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v15
|
|
|
|
invoke-virtual {v15}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 1478
|
|
monitor-exit v2
|
|
|
|
goto :goto_a
|
|
|
|
:catchall_3
|
|
move-exception v0
|
|
|
|
monitor-exit v2
|
|
:try_end_b
|
|
.catchall {:try_start_b .. :try_end_b} :catchall_3
|
|
|
|
:try_start_c
|
|
throw v0
|
|
:try_end_c
|
|
.catchall {:try_start_c .. :try_end_c} :catchall_5
|
|
|
|
:cond_1c
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_a
|
|
|
|
:cond_1d
|
|
const/4 v0, 0x1
|
|
|
|
:goto_a
|
|
if-eqz v14, :cond_14
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto/16 :goto_8
|
|
|
|
:cond_1e
|
|
move v11, v0
|
|
|
|
.line 1383
|
|
:cond_1f
|
|
:try_start_d
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->wait()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto/16 :goto_1
|
|
|
|
:catchall_4
|
|
move-exception v0
|
|
|
|
.line 1385
|
|
monitor-exit v15
|
|
:try_end_d
|
|
.catchall {:try_start_d .. :try_end_d} :catchall_4
|
|
|
|
:try_start_e
|
|
throw v0
|
|
:try_end_e
|
|
.catchall {:try_start_e .. :try_end_e} :catchall_5
|
|
|
|
:catchall_5
|
|
move-exception v0
|
|
|
|
.line 1489
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v2
|
|
|
|
monitor-enter v2
|
|
|
|
.line 1490
|
|
:try_start_f
|
|
invoke-direct/range {p0 .. p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->j()V
|
|
|
|
.line 1491
|
|
invoke-direct/range {p0 .. p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->k()V
|
|
|
|
.line 1492
|
|
monitor-exit v2
|
|
:try_end_f
|
|
.catchall {:try_start_f .. :try_end_f} :catchall_6
|
|
|
|
.line 1493
|
|
throw v0
|
|
|
|
:catchall_6
|
|
move-exception v0
|
|
|
|
.line 1492
|
|
:try_start_10
|
|
monitor-exit v2
|
|
:try_end_10
|
|
.catchall {:try_start_10 .. :try_end_10} :catchall_6
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method private m()Z
|
|
.locals 2
|
|
|
|
.line 1499
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->d:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->e:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->f:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->l:I
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
iget v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->m:I
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->o:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->n:I
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(I)V
|
|
.locals 1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-gt p1, v0, :cond_0
|
|
|
|
.line 1507
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
monitor-enter v0
|
|
|
|
.line 1508
|
|
:try_start_0
|
|
iput p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->n:I
|
|
|
|
.line 1509
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 1510
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
|
|
.line 1505
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "renderMode"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public a(II)V
|
|
.locals 1
|
|
|
|
.line 1600
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
monitor-enter v0
|
|
|
|
.line 1601
|
|
:try_start_0
|
|
iput p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->l:I
|
|
|
|
.line 1602
|
|
iput p2, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->m:I
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 1603
|
|
iput-boolean p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->r:Z
|
|
|
|
.line 1604
|
|
iput-boolean p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->o:Z
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 1605
|
|
iput-boolean p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->p:Z
|
|
|
|
.line 1606
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 1608
|
|
:goto_0
|
|
iget-boolean p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->b:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iget-boolean p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->d:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iget-boolean p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->p:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 1609
|
|
invoke-virtual {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->a()Z
|
|
|
|
move-result p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1614
|
|
:try_start_1
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->wait()V
|
|
:try_end_1
|
|
.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1616
|
|
:catch_0
|
|
:try_start_2
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1619
|
|
:cond_0
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public a()Z
|
|
.locals 1
|
|
|
|
.line 1496
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->h:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->i:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-direct {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->m()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public b()I
|
|
.locals 2
|
|
|
|
.line 1513
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
monitor-enter v0
|
|
|
|
.line 1514
|
|
:try_start_0
|
|
iget v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->n:I
|
|
|
|
monitor-exit v0
|
|
|
|
return v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 1515
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public c()V
|
|
.locals 2
|
|
|
|
.line 1518
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
monitor-enter v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 1519
|
|
:try_start_0
|
|
iput-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->o:Z
|
|
|
|
.line 1520
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 1521
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public d()V
|
|
.locals 2
|
|
|
|
.line 1524
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
monitor-enter v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 1528
|
|
:try_start_0
|
|
iput-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->e:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 1529
|
|
iput-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->j:Z
|
|
|
|
.line 1530
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 1532
|
|
:goto_0
|
|
iget-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->g:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->j:Z
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
iget-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->b:Z
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 1536
|
|
:try_start_1
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->wait()V
|
|
:try_end_1
|
|
.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1538
|
|
:catch_0
|
|
:try_start_2
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1541
|
|
:cond_0
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public e()V
|
|
.locals 2
|
|
|
|
.line 1544
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
monitor-enter v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 1548
|
|
:try_start_0
|
|
iput-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->e:Z
|
|
|
|
.line 1549
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 1550
|
|
:goto_0
|
|
iget-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->g:Z
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
iget-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->b:Z
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 1552
|
|
:try_start_1
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->wait()V
|
|
:try_end_1
|
|
.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1554
|
|
:catch_0
|
|
:try_start_2
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1557
|
|
:cond_0
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public f()V
|
|
.locals 2
|
|
|
|
.line 1560
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
monitor-enter v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 1564
|
|
:try_start_0
|
|
iput-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->c:Z
|
|
|
|
.line 1565
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 1566
|
|
:goto_0
|
|
iget-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->b:Z
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
iget-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->d:Z
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 1571
|
|
:try_start_1
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->wait()V
|
|
:try_end_1
|
|
.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1573
|
|
:catch_0
|
|
:try_start_2
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1576
|
|
:cond_0
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public g()V
|
|
.locals 3
|
|
|
|
.line 1579
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
monitor-enter v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 1583
|
|
:try_start_0
|
|
iput-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->c:Z
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 1584
|
|
iput-boolean v2, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->o:Z
|
|
|
|
.line 1585
|
|
iput-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->p:Z
|
|
|
|
.line 1586
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 1587
|
|
:goto_0
|
|
iget-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->b:Z
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
iget-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->d:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->p:Z
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 1592
|
|
:try_start_1
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->wait()V
|
|
:try_end_1
|
|
.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1594
|
|
:catch_0
|
|
:try_start_2
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1597
|
|
:cond_0
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public h()V
|
|
.locals 2
|
|
|
|
.line 1624
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
monitor-enter v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 1625
|
|
:try_start_0
|
|
iput-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->a:Z
|
|
|
|
.line 1626
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 1627
|
|
:goto_0
|
|
iget-boolean v1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->b:Z
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 1629
|
|
:try_start_1
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->wait()V
|
|
:try_end_1
|
|
.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1631
|
|
:catch_0
|
|
:try_start_2
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1634
|
|
:cond_0
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public i()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1637
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->k:Z
|
|
|
|
.line 1638
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public run()V
|
|
.locals 3
|
|
|
|
.line 1181
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "GLThread "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->getId()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->setName(Ljava/lang/String;)V
|
|
|
|
.line 1186
|
|
:try_start_0
|
|
invoke-direct {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->l()V
|
|
:try_end_0
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 1190
|
|
:catch_0
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->a(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;)V
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
invoke-static {}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView;->d()Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->a(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;)V
|
|
|
|
.line 1191
|
|
throw v0
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|