BlockGLSurfaceView$GLThread.smali
.class Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;
.super Ljava/lang/Thread;
.source "BlockGLSurfaceView.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/sandboxol/clothes/BlockGLSurfaceView;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "GLThread"
.end annotation
# instance fields
.field private mEglHelper:Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;
.field private mEventQueue:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Ljava/lang/Runnable;",
">;"
}
.end annotation
.end field
.field private mExited:Z
.field private mFinishDrawingRunnable:Ljava/lang/Runnable;
.field private mFinishedCreatingEglSurface:Z
.field private mGLSurfaceViewWeakRef:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Lcom/sandboxol/clothes/BlockGLSurfaceView;",
">;"
}
.end annotation
.end field
.field private mHasSurface:Z
.field private mHaveEglContext:Z
.field private mHaveEglSurface:Z
.field private mHeight:I
.field private mPaused:Z
.field private mRenderComplete:Z
.field private mRenderMode:I
.field private mRequestPaused:Z
.field private mRequestRender:Z
.field private mShouldExit:Z
.field private mShouldReleaseEglContext:Z
.field private mSizeChanged:Z
.field private mSurfaceIsBad:Z
.field private mWaitingForSurface:Z
.field private mWantRenderNotification:Z
.field private mWidth:I
# direct methods
.method constructor <init>(Ljava/lang/ref/WeakReference;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/ref/WeakReference<",
"Lcom/sandboxol/clothes/BlockGLSurfaceView;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Thread;-><init>()V
.line 2
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mEventQueue:Ljava/util/ArrayList;
const/4 v0, 0x1
.line 3
iput-boolean v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mSizeChanged:Z
const/4 v1, 0x0
.line 4
iput-object v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mFinishDrawingRunnable:Ljava/lang/Runnable;
const/4 v1, 0x0
.line 5
iput v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWidth:I
.line 6
iput v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHeight:I
.line 7
iput-boolean v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRequestRender:Z
.line 8
iput v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRenderMode:I
.line 9
iput-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWantRenderNotification:Z
.line 10
iput-object p1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mGLSurfaceViewWeakRef:Ljava/lang/ref/WeakReference;
return-void
.end method
.method static synthetic access$1202(Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;Z)Z
.registers 2
.line 1
iput-boolean p1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mExited:Z
return p1
.end method
.method private guardedRun()V
.registers 20
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/InterruptedException;
}
.end annotation
move-object/from16 v1, p0
.line 1
new-instance v0, Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;
iget-object v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mGLSurfaceViewWeakRef:Ljava/lang/ref/WeakReference;
invoke-direct {v0, v2}, Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;-><init>(Ljava/lang/ref/WeakReference;)V
iput-object v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mEglHelper:Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;
const/4 v0, 0x0
.line 2
iput-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglContext:Z
.line 3
iput-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglSurface:Z
.line 4
iput-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWantRenderNotification: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
const/4 v15, 0x0
.line 5
:goto_1f
:try_start_1f
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v16
monitor-enter v16
:try_end_24
.catchall {:try_start_1f .. :try_end_24} :catchall_231
.line 6
:goto_24
:try_start_24
iget-boolean v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mShouldExit:Z
if-eqz v2, :cond_39
.line 7
monitor-exit v16
:try_end_29
.catchall {:try_start_24 .. :try_end_29} :catchall_22e
.line 8
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v2
monitor-enter v2
.line 9
:try_start_2e
invoke-direct/range {p0 .. p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->stopEglSurfaceLocked()V
.line 10
invoke-direct/range {p0 .. p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->stopEglContextLocked()V
.line 11
monitor-exit v2
return-void
:catchall_36
move-exception v0
monitor-exit v2
:try_end_38
.catchall {:try_start_2e .. :try_end_38} :catchall_36
throw v0
.line 12
:cond_39
:try_start_39
iget-object v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mEventQueue:Ljava/util/ArrayList;
invoke-virtual {v2}, Ljava/util/ArrayList;->isEmpty()Z
move-result v2
if-nez v2, :cond_4f
.line 13
iget-object v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mEventQueue:Ljava/util/ArrayList;
const/4 v11, 0x0
invoke-virtual {v2, v11}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Runnable;
move-object v11, v2
move-object v0, v5
const/4 v5, 0x0
goto/16 :goto_144
.line 14
:cond_4f
iget-boolean v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mPaused:Z
iget-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRequestPaused:Z
if-eq v2, v0, :cond_63
.line 15
iget-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRequestPaused:Z
.line 16
iget-boolean v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRequestPaused:Z
iput-boolean v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mPaused:Z
.line 17
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Object;->notifyAll()V
goto :goto_64
:cond_63
const/4 v0, 0x0
.line 18
:goto_64
iget-boolean v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mShouldReleaseEglContext:Z
if-eqz v2, :cond_72
.line 19
invoke-direct/range {p0 .. p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->stopEglSurfaceLocked()V
.line 20
invoke-direct/range {p0 .. p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->stopEglContextLocked()V
const/4 v2, 0x0
.line 21
iput-boolean v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mShouldReleaseEglContext:Z
const/4 v4, 0x1
:cond_72
if-eqz v6, :cond_7b
.line 22
invoke-direct/range {p0 .. p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->stopEglSurfaceLocked()V
.line 23
invoke-direct/range {p0 .. p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->stopEglContextLocked()V
const/4 v6, 0x0
:cond_7b
if-eqz v0, :cond_84
.line 24
iget-boolean v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglSurface:Z
if-eqz v2, :cond_84
.line 25
invoke-direct/range {p0 .. p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->stopEglSurfaceLocked()V
:cond_84
if-eqz v0, :cond_9f
.line 26
iget-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglContext:Z
if-eqz v0, :cond_9f
.line 27
iget-object v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mGLSurfaceViewWeakRef:Ljava/lang/ref/WeakReference;
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/sandboxol/clothes/BlockGLSurfaceView;
if-nez v0, :cond_96
const/4 v0, 0x0
goto :goto_9a
.line 28
:cond_96
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->mPreserveEGLContextOnPause:Z
invoke-static {v0}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$1000(Lcom/sandboxol/clothes/BlockGLSurfaceView;)Z
move-result v0
:goto_9a
if-nez v0, :cond_9f
.line 29
invoke-direct/range {p0 .. p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->stopEglContextLocked()V
.line 30
:cond_9f
iget-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHasSurface:Z
if-nez v0, :cond_bb
iget-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWaitingForSurface:Z
if-nez v0, :cond_bb
.line 31
iget-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglSurface:Z
if-eqz v0, :cond_ae
.line 32
invoke-direct/range {p0 .. p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->stopEglSurfaceLocked()V
:cond_ae
const/4 v0, 0x1
.line 33
iput-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWaitingForSurface:Z
const/4 v0, 0x0
.line 34
iput-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mSurfaceIsBad:Z
.line 35
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
.line 36
:cond_bb
iget-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHasSurface:Z
if-eqz v0, :cond_cd
iget-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWaitingForSurface:Z
if-eqz v0, :cond_cd
const/4 v0, 0x0
.line 37
iput-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWaitingForSurface:Z
.line 38
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
:cond_cd
if-eqz v3, :cond_dd
const/4 v0, 0x0
.line 39
iput-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWantRenderNotification:Z
const/4 v0, 0x1
.line 40
iput-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRenderComplete:Z
.line 41
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
const/4 v3, 0x0
.line 42
:cond_dd
iget-object v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mFinishDrawingRunnable:Ljava/lang/Runnable;
if-eqz v0, :cond_e7
.line 43
iget-object v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mFinishDrawingRunnable:Ljava/lang/Runnable;
const/4 v2, 0x0
.line 44
iput-object v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mFinishDrawingRunnable:Ljava/lang/Runnable;
goto :goto_e9
:cond_e7
const/4 v2, 0x0
move-object v0, v5
.line 45
:goto_e9
invoke-direct/range {p0 .. p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->readyToDraw()Z
move-result v5
if-eqz v5, :cond_215
.line 46
iget-boolean v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglContext:Z
:try_end_f1
.catchall {:try_start_39 .. :try_end_f1} :catchall_22e
if-nez v5, :cond_111
if-eqz v4, :cond_f7
const/4 v4, 0x0
goto :goto_111
.line 47
:cond_f7
:try_start_f7
iget-object v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mEglHelper:Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;
invoke-virtual {v5}, Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;->start()V
:try_end_fc
.catch Ljava/lang/RuntimeException; {:try_start_f7 .. :try_end_fc} :catch_108
.catchall {:try_start_f7 .. :try_end_fc} :catchall_22e
const/4 v5, 0x1
.line 48
:try_start_fd
iput-boolean v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglContext:Z
.line 49
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v5
invoke-virtual {v5}, Ljava/lang/Object;->notifyAll()V
const/4 v12, 0x1
goto :goto_111
:catch_108
move-exception v0
.line 50
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v2
invoke-virtual {v2, v1}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;->releaseEglContextLocked(Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;)V
.line 51
throw v0
.line 52
:cond_111
:goto_111
iget-boolean v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglContext:Z
if-eqz v5, :cond_11f
iget-boolean v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglSurface:Z
if-nez v5, :cond_11f
const/4 v5, 0x1
.line 53
iput-boolean v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglSurface:Z
const/4 v13, 0x1
const/4 v14, 0x1
const/4 v15, 0x1
.line 54
:cond_11f
iget-boolean v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglSurface:Z
if-eqz v5, :cond_223
.line 55
iget-boolean v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mSizeChanged:Z
if-eqz v5, :cond_135
.line 56
iget v9, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWidth:I
.line 57
iget v10, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHeight:I
const/4 v5, 0x1
.line 58
iput-boolean v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWantRenderNotification:Z
const/4 v5, 0x0
.line 59
iput-boolean v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mSizeChanged:Z
const/4 v5, 0x0
const/4 v13, 0x1
const/4 v15, 0x1
goto :goto_136
:cond_135
const/4 v5, 0x0
.line 60
:goto_136
iput-boolean v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRequestRender:Z
.line 61
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v17
invoke-virtual/range {v17 .. v17}, Ljava/lang/Object;->notifyAll()V
.line 62
iget-boolean v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWantRenderNotification:Z
if-eqz v2, :cond_144
const/4 v7, 0x1
.line 63
:cond_144
:goto_144
monitor-exit v16
:try_end_145
.catchall {:try_start_fd .. :try_end_145} :catchall_22e
if-eqz v11, :cond_14f
.line 64
:try_start_147
invoke-interface {v11}, Ljava/lang/Runnable;->run()V
move-object v5, v0
const/4 v0, 0x0
const/4 v11, 0x0
goto/16 :goto_1f
:cond_14f
if-eqz v13, :cond_187
.line 65
iget-object v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mEglHelper:Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;
invoke-virtual {v2}, Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;->createSurface()Z
move-result v2
if-eqz v2, :cond_16e
.line 66
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v2
monitor-enter v2
:try_end_15e
.catchall {:try_start_147 .. :try_end_15e} :catchall_231
const/4 v13, 0x1
.line 67
:try_start_15f
iput-boolean v13, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mFinishedCreatingEglSurface:Z
.line 68
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v13
invoke-virtual {v13}, Ljava/lang/Object;->notifyAll()V
.line 69
monitor-exit v2
const/4 v13, 0x0
goto :goto_187
:catchall_16b
move-exception v0
monitor-exit v2
:try_end_16d
.catchall {:try_start_15f .. :try_end_16d} :catchall_16b
:try_start_16d
throw v0
.line 70
:cond_16e
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v2
monitor-enter v2
:try_end_173
.catchall {:try_start_16d .. :try_end_173} :catchall_231
const/4 v5, 0x1
.line 71
:try_start_174
iput-boolean v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mFinishedCreatingEglSurface:Z
.line 72
iput-boolean v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mSurfaceIsBad:Z
.line 73
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v5
invoke-virtual {v5}, Ljava/lang/Object;->notifyAll()V
.line 74
monitor-exit v2
move-object v5, v0
:goto_181
const/4 v0, 0x0
goto/16 :goto_1f
:catchall_184
move-exception v0
monitor-exit v2
:try_end_186
.catchall {:try_start_174 .. :try_end_186} :catchall_184
:try_start_186
throw v0
:cond_187
:goto_187
if-eqz v14, :cond_193
.line 75
iget-object v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mEglHelper:Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;
invoke-virtual {v2}, Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;->createGL()Ljavax/microedition/khronos/opengles/GL;
move-result-object v2
check-cast v2, Ljavax/microedition/khronos/opengles/GL10;
move-object v8, v2
const/4 v14, 0x0
:cond_193
if-eqz v12, :cond_1ab
.line 76
iget-object v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mGLSurfaceViewWeakRef:Ljava/lang/ref/WeakReference;
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/sandboxol/clothes/BlockGLSurfaceView;
if-eqz v2, :cond_1aa
.line 77
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->mRenderer:Lcom/sandboxol/clothes/BlockGLSurfaceView$Renderer;
invoke-static {v2}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$1100(Lcom/sandboxol/clothes/BlockGLSurfaceView;)Lcom/sandboxol/clothes/BlockGLSurfaceView$Renderer;
move-result-object v2
iget-object v5, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mEglHelper:Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;
iget-object v5, v5, Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;->mEglConfig:Ljavax/microedition/khronos/egl/EGLConfig;
invoke-interface {v2, v8, v5}, Lcom/sandboxol/clothes/BlockGLSurfaceView$Renderer;->onSurfaceCreated(Ljavax/microedition/khronos/opengles/GL10;Ljavax/microedition/khronos/egl/EGLConfig;)V
:cond_1aa
const/4 v12, 0x0
:cond_1ab
if-eqz v15, :cond_1bf
.line 78
iget-object v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mGLSurfaceViewWeakRef:Ljava/lang/ref/WeakReference;
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/sandboxol/clothes/BlockGLSurfaceView;
if-eqz v2, :cond_1be
.line 79
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->mRenderer:Lcom/sandboxol/clothes/BlockGLSurfaceView$Renderer;
invoke-static {v2}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$1100(Lcom/sandboxol/clothes/BlockGLSurfaceView;)Lcom/sandboxol/clothes/BlockGLSurfaceView$Renderer;
move-result-object v2
invoke-interface {v2, v8, v9, v10}, Lcom/sandboxol/clothes/BlockGLSurfaceView$Renderer;->onSurfaceChanged(Ljavax/microedition/khronos/opengles/GL10;II)V
:cond_1be
const/4 v15, 0x0
.line 80
:cond_1bf
iget-object v2, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mGLSurfaceViewWeakRef:Ljava/lang/ref/WeakReference;
invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/sandboxol/clothes/BlockGLSurfaceView;
if-eqz v2, :cond_1d7
.line 81
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->mRenderer:Lcom/sandboxol/clothes/BlockGLSurfaceView$Renderer;
invoke-static {v2}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$1100(Lcom/sandboxol/clothes/BlockGLSurfaceView;)Lcom/sandboxol/clothes/BlockGLSurfaceView$Renderer;
move-result-object v2
invoke-interface {v2, v8}, Lcom/sandboxol/clothes/BlockGLSurfaceView$Renderer;->onDrawFrame(Ljavax/microedition/khronos/opengles/GL10;)V
if-eqz v0, :cond_1d7
.line 82
invoke-interface {v0}, Ljava/lang/Runnable;->run()V
const/4 v5, 0x0
goto :goto_1d8
:cond_1d7
move-object v5, v0
.line 83
:goto_1d8
iget-object v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mEglHelper:Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;
invoke-virtual {v0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;->swap()I
move-result v0
const/16 v2, 0x3000
if-eq v0, v2, :cond_208
const/16 v2, 0x300e
if-eq v0, v2, :cond_203
const-string v2, "GLThread"
move/from16 v18, v3
const-string v3, "eglSwapBuffers"
.line 84
invoke-static {v2, v3, v0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;->logEglErrorAsWarning(Ljava/lang/String;Ljava/lang/String;I)V
.line 85
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v2
monitor-enter v2
:try_end_1f4
.catchall {:try_start_186 .. :try_end_1f4} :catchall_231
const/4 v0, 0x1
.line 86
:try_start_1f5
iput-boolean v0, v1, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mSurfaceIsBad:Z
.line 87
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/Object;->notifyAll()V
.line 88
monitor-exit v2
goto :goto_20b
:catchall_200
move-exception v0
monitor-exit v2
:try_end_202
.catchall {:try_start_1f5 .. :try_end_202} :catchall_200
:try_start_202
throw v0
:try_end_203
.catchall {:try_start_202 .. :try_end_203} :catchall_231
:cond_203
move/from16 v18, v3
const/4 v0, 0x1
const/4 v6, 0x1
goto :goto_20b
:cond_208
move/from16 v18, v3
const/4 v0, 0x1
:goto_20b
if-eqz v7, :cond_211
const/4 v3, 0x1
const/4 v7, 0x0
goto/16 :goto_181
:cond_211
move/from16 v3, v18
goto/16 :goto_181
:cond_215
if-eqz v0, :cond_223
:try_start_217
const-string v2, "GLSurfaceView"
const-string v5, "Warning, !readyToDraw() but waiting for draw finished! Early reporting draw finished."
.line 89
invoke-static {v2, v5}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
.line 90
invoke-interface {v0}, Ljava/lang/Runnable;->run()V
const/4 v5, 0x0
goto :goto_224
:cond_223
move-object v5, v0
.line 91
:goto_224
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->wait()V
const/4 v0, 0x0
goto/16 :goto_24
:catchall_22e
move-exception v0
.line 92
monitor-exit v16
:try_end_230
.catchall {:try_start_217 .. :try_end_230} :catchall_22e
:try_start_230
throw v0
:try_end_231
.catchall {:try_start_230 .. :try_end_231} :catchall_231
:catchall_231
move-exception v0
.line 93
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v2
monitor-enter v2
.line 94
:try_start_237
invoke-direct/range {p0 .. p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->stopEglSurfaceLocked()V
.line 95
invoke-direct/range {p0 .. p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->stopEglContextLocked()V
.line 96
monitor-exit v2
:try_end_23e
.catchall {:try_start_237 .. :try_end_23e} :catchall_23f
.line 97
throw v0
:catchall_23f
move-exception v0
.line 98
:try_start_240
monitor-exit v2
:try_end_241
.catchall {:try_start_240 .. :try_end_241} :catchall_23f
goto :goto_243
:goto_242
throw v0
:goto_243
goto :goto_242
.end method
.method private readyToDraw()Z
.registers 3
.line 1
iget-boolean v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mPaused:Z
const/4 v1, 0x1
if-nez v0, :cond_1e
iget-boolean v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHasSurface:Z
if-eqz v0, :cond_1e
iget-boolean v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mSurfaceIsBad:Z
if-nez v0, :cond_1e
iget v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWidth:I
if-lez v0, :cond_1e
iget v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHeight:I
if-lez v0, :cond_1e
iget-boolean v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRequestRender:Z
if-nez v0, :cond_1f
iget v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRenderMode:I
if-ne v0, v1, :cond_1e
goto :goto_1f
:cond_1e
const/4 v1, 0x0
:cond_1f
:goto_1f
return v1
.end method
.method private stopEglContextLocked()V
.registers 2
.line 1
iget-boolean v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglContext:Z
if-eqz v0, :cond_13
.line 2
iget-object v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mEglHelper:Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;
invoke-virtual {v0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;->finish()V
const/4 v0, 0x0
.line 3
iput-boolean v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglContext:Z
.line 4
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;->releaseEglContextLocked(Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;)V
:cond_13
return-void
.end method
.method private stopEglSurfaceLocked()V
.registers 2
.line 1
iget-boolean v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglSurface:Z
if-eqz v0, :cond_c
const/4 v0, 0x0
.line 2
iput-boolean v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglSurface:Z
.line 3
iget-object v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mEglHelper:Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;
invoke-virtual {v0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;->destroySurface()V
:cond_c
return-void
.end method
# virtual methods
.method public ableToDraw()Z
.registers 2
.line 1
iget-boolean v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglContext:Z
if-eqz v0, :cond_10
iget-boolean v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHaveEglSurface:Z
if-eqz v0, :cond_10
invoke-direct {p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->readyToDraw()Z
move-result v0
if-eqz v0, :cond_10
const/4 v0, 0x1
goto :goto_11
:cond_10
const/4 v0, 0x0
:goto_11
return v0
.end method
.method public getRenderMode()I
.registers 3
.line 1
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
monitor-enter v0
.line 2
:try_start_5
iget v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRenderMode:I
monitor-exit v0
return v1
:catchall_9
move-exception v1
.line 3
monitor-exit v0
:try_end_b
.catchall {:try_start_5 .. :try_end_b} :catchall_9
throw v1
.end method
.method public hasCurrentContext()Z
.registers 2
.line 1
iget-object v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mEglHelper:Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;
invoke-virtual {v0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$EglHelper;->hasCurrentContext()Z
move-result v0
return v0
.end method
.method public onPause()V
.registers 3
.line 1
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
monitor-enter v0
const/4 v1, 0x1
.line 2
:try_start_6
iput-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRequestPaused:Z
.line 3
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
.line 4
:goto_f
iget-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mExited:Z
if-nez v1, :cond_27
iget-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mPaused:Z
:try_end_15
.catchall {:try_start_6 .. :try_end_15} :catchall_29
if-nez v1, :cond_27
.line 5
:try_start_17
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->wait()V
:try_end_1e
.catch Ljava/lang/InterruptedException; {:try_start_17 .. :try_end_1e} :catch_1f
.catchall {:try_start_17 .. :try_end_1e} :catchall_29
goto :goto_f
.line 6
:catch_1f
:try_start_1f
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
goto :goto_f
.line 7
:cond_27
monitor-exit v0
return-void
:catchall_29
move-exception v1
monitor-exit v0
:try_end_2b
.catchall {:try_start_1f .. :try_end_2b} :catchall_29
goto :goto_2d
:goto_2c
throw v1
:goto_2d
goto :goto_2c
.end method
.method public onResume()V
.registers 4
.line 1
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
monitor-enter v0
const/4 v1, 0x0
.line 2
:try_start_6
iput-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRequestPaused:Z
const/4 v2, 0x1
.line 3
iput-boolean v2, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRequestRender:Z
.line 4
iput-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRenderComplete:Z
.line 5
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
.line 6
:goto_14
iget-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mExited:Z
if-nez v1, :cond_30
iget-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mPaused:Z
if-eqz v1, :cond_30
iget-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRenderComplete:Z
:try_end_1e
.catchall {:try_start_6 .. :try_end_1e} :catchall_32
if-nez v1, :cond_30
.line 7
:try_start_20
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->wait()V
:try_end_27
.catch Ljava/lang/InterruptedException; {:try_start_20 .. :try_end_27} :catch_28
.catchall {:try_start_20 .. :try_end_27} :catchall_32
goto :goto_14
.line 8
:catch_28
:try_start_28
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
goto :goto_14
.line 9
:cond_30
monitor-exit v0
return-void
:catchall_32
move-exception v1
monitor-exit v0
:try_end_34
.catchall {:try_start_28 .. :try_end_34} :catchall_32
goto :goto_36
:goto_35
throw v1
:goto_36
goto :goto_35
.end method
.method public onWindowResize(II)V
.registers 4
.line 1
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
monitor-enter v0
.line 2
:try_start_5
iput p1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWidth:I
.line 3
iput p2, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHeight:I
const/4 p1, 0x1
.line 4
iput-boolean p1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mSizeChanged:Z
.line 5
iput-boolean p1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRequestRender:Z
const/4 p1, 0x0
.line 6
iput-boolean p1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRenderComplete:Z
.line 7
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object p1
if-ne p1, p0, :cond_19
.line 8
monitor-exit v0
return-void
.line 9
:cond_19
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V
.line 10
:goto_20
iget-boolean p1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mExited:Z
if-nez p1, :cond_42
iget-boolean p1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mPaused:Z
if-nez p1, :cond_42
iget-boolean p1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRenderComplete:Z
if-nez p1, :cond_42
.line 11
invoke-virtual {p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->ableToDraw()Z
move-result p1
:try_end_30
.catchall {:try_start_5 .. :try_end_30} :catchall_44
if-eqz p1, :cond_42
.line 12
:try_start_32
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Object;->wait()V
:try_end_39
.catch Ljava/lang/InterruptedException; {:try_start_32 .. :try_end_39} :catch_3a
.catchall {:try_start_32 .. :try_end_39} :catchall_44
goto :goto_20
.line 13
:catch_3a
:try_start_3a
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Thread;->interrupt()V
goto :goto_20
.line 14
:cond_42
monitor-exit v0
return-void
:catchall_44
move-exception p1
monitor-exit v0
:try_end_46
.catchall {:try_start_3a .. :try_end_46} :catchall_44
goto :goto_48
:goto_47
throw p1
:goto_48
goto :goto_47
.end method
.method public queueEvent(Ljava/lang/Runnable;)V
.registers 4
if-eqz p1, :cond_18
.line 1
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
monitor-enter v0
.line 2
:try_start_7
iget-object v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mEventQueue:Ljava/util/ArrayList;
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 3
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V
.line 4
monitor-exit v0
return-void
:catchall_15
move-exception p1
monitor-exit v0
:try_end_17
.catchall {:try_start_7 .. :try_end_17} :catchall_15
throw p1
.line 5
:cond_18
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "r must not be null"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public requestExitAndWait()V
.registers 3
.line 1
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
monitor-enter v0
const/4 v1, 0x1
.line 2
:try_start_6
iput-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mShouldExit:Z
.line 3
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
.line 4
:goto_f
iget-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mExited:Z
:try_end_11
.catchall {:try_start_6 .. :try_end_11} :catchall_25
if-nez v1, :cond_23
.line 5
:try_start_13
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->wait()V
:try_end_1a
.catch Ljava/lang/InterruptedException; {:try_start_13 .. :try_end_1a} :catch_1b
.catchall {:try_start_13 .. :try_end_1a} :catchall_25
goto :goto_f
.line 6
:catch_1b
:try_start_1b
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
goto :goto_f
.line 7
:cond_23
monitor-exit v0
return-void
:catchall_25
move-exception v1
monitor-exit v0
:try_end_27
.catchall {:try_start_1b .. :try_end_27} :catchall_25
goto :goto_29
:goto_28
throw v1
:goto_29
goto :goto_28
.end method
.method public requestReleaseEglContextLocked()V
.registers 2
const/4 v0, 0x1
.line 1
iput-boolean v0, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mShouldReleaseEglContext:Z
.line 2
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->notifyAll()V
return-void
.end method
.method public requestRender()V
.registers 3
.line 1
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
monitor-enter v0
const/4 v1, 0x1
.line 2
:try_start_6
iput-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRequestRender:Z
.line 3
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
.line 4
monitor-exit v0
return-void
:catchall_11
move-exception v1
monitor-exit v0
:try_end_13
.catchall {:try_start_6 .. :try_end_13} :catchall_11
throw v1
.end method
.method public requestRenderAndNotify(Ljava/lang/Runnable;)V
.registers 4
.line 1
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
monitor-enter v0
.line 2
:try_start_5
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
if-ne v1, p0, :cond_d
.line 3
monitor-exit v0
return-void
:cond_d
const/4 v1, 0x1
.line 4
iput-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWantRenderNotification:Z
.line 5
iput-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRequestRender:Z
const/4 v1, 0x0
.line 6
iput-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRenderComplete:Z
.line 7
iput-object p1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mFinishDrawingRunnable:Ljava/lang/Runnable;
.line 8
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V
.line 9
monitor-exit v0
return-void
:catchall_20
move-exception p1
monitor-exit v0
:try_end_22
.catchall {:try_start_5 .. :try_end_22} :catchall_20
throw p1
.end method
.method public run()V
.registers 4
.line 1
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}, Ljava/lang/Thread;->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}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
.line 2
:try_start_18
invoke-direct {p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->guardedRun()V
:try_end_1b
.catch Ljava/lang/InterruptedException; {:try_start_18 .. :try_end_1b} :catch_1b
.catchall {:try_start_18 .. :try_end_1b} :catchall_23
.line 3
:catch_1b
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;->threadExiting(Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;)V
goto :goto_2c
:catchall_23
move-exception v0
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v1
invoke-virtual {v1, p0}, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;->threadExiting(Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;)V
.line 4
throw v0
:goto_2c
return-void
.end method
.method public setRenderMode(I)V
.registers 3
if-ltz p1, :cond_18
const/4 v0, 0x1
if-gt p1, v0, :cond_18
.line 1
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
monitor-enter v0
.line 2
:try_start_a
iput p1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mRenderMode:I
.line 3
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V
.line 4
monitor-exit v0
return-void
:catchall_15
move-exception p1
monitor-exit v0
:try_end_17
.catchall {:try_start_a .. :try_end_17} :catchall_15
throw p1
.line 5
:cond_18
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 surfaceCreated()V
.registers 3
.line 1
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
monitor-enter v0
const/4 v1, 0x1
.line 2
:try_start_6
iput-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHasSurface:Z
const/4 v1, 0x0
.line 3
iput-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mFinishedCreatingEglSurface:Z
.line 4
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
.line 5
:goto_12
iget-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWaitingForSurface:Z
if-eqz v1, :cond_2e
iget-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mFinishedCreatingEglSurface:Z
if-nez v1, :cond_2e
iget-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mExited:Z
:try_end_1c
.catchall {:try_start_6 .. :try_end_1c} :catchall_30
if-nez v1, :cond_2e
.line 6
:try_start_1e
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->wait()V
:try_end_25
.catch Ljava/lang/InterruptedException; {:try_start_1e .. :try_end_25} :catch_26
.catchall {:try_start_1e .. :try_end_25} :catchall_30
goto :goto_12
.line 7
:catch_26
:try_start_26
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
goto :goto_12
.line 8
:cond_2e
monitor-exit v0
return-void
:catchall_30
move-exception v1
monitor-exit v0
:try_end_32
.catchall {:try_start_26 .. :try_end_32} :catchall_30
goto :goto_34
:goto_33
throw v1
:goto_34
goto :goto_33
.end method
.method public surfaceDestroyed()V
.registers 3
.line 1
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v0
monitor-enter v0
const/4 v1, 0x0
.line 2
:try_start_6
iput-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mHasSurface:Z
.line 3
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
.line 4
:goto_f
iget-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mWaitingForSurface:Z
if-nez v1, :cond_27
iget-boolean v1, p0, Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThread;->mExited:Z
:try_end_15
.catchall {:try_start_6 .. :try_end_15} :catchall_29
if-nez v1, :cond_27
.line 5
:try_start_17
# getter for: Lcom/sandboxol/clothes/BlockGLSurfaceView;->sGLThreadManager:Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
invoke-static {}, Lcom/sandboxol/clothes/BlockGLSurfaceView;->access$900()Lcom/sandboxol/clothes/BlockGLSurfaceView$GLThreadManager;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->wait()V
:try_end_1e
.catch Ljava/lang/InterruptedException; {:try_start_17 .. :try_end_1e} :catch_1f
.catchall {:try_start_17 .. :try_end_1e} :catchall_29
goto :goto_f
.line 6
:catch_1f
:try_start_1f
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
goto :goto_f
.line 7
:cond_27
monitor-exit v0
return-void
:catchall_29
move-exception v1
monitor-exit v0
:try_end_2b
.catchall {:try_start_1f .. :try_end_2b} :catchall_29
goto :goto_2d
:goto_2c
throw v1
:goto_2d
goto :goto_2c
.end method