Weather/smali/com/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager.smali
2021-05-10 10:13:34 +02:00

317 lines
7.7 KiB
Smali

.class Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;
.super Ljava/lang/Object;
.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 = 0xa
name = "GLThreadManager"
.end annotation
# static fields
.field private static a:Ljava/lang/String; = "GLThreadManager"
# instance fields
.field private b:Z
.field private c:I
.field private d:Z
.field private e:Z
.field private f:Z
.field private g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 1717
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method synthetic constructor <init>(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$1;)V
.locals 0
.line 1717
invoke-direct {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;-><init>()V
return-void
.end method
.method private c()V
.locals 1
.line 1794
iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->b:Z
if-nez v0, :cond_0
const/4 v0, 0x1
.line 1805
iput-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->b:Z
:cond_0
return-void
.end method
# virtual methods
.method public declared-synchronized a(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;)V
.locals 1
monitor-enter p0
const/4 v0, 0x1
.line 1723
:try_start_0
invoke-static {p1, v0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->a(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;Z)Z
.line 1724
iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;
if-ne v0, p1, :cond_0
const/4 p1, 0x0
.line 1725
iput-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;
.line 1727
:cond_0
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 1728
monitor-exit p0
return-void
:catchall_0
move-exception p1
.line 1722
monitor-exit p0
throw p1
.end method
.method public declared-synchronized a(Ljavax/microedition/khronos/opengles/GL10;)V
.locals 3
monitor-enter p0
.line 1776
:try_start_0
iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->d:Z
if-nez v0, :cond_1
.line 1777
invoke-direct {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->c()V
const/16 v0, 0x1f01
.line 1778
invoke-interface {p1, v0}, Ljavax/microedition/khronos/opengles/GL10;->glGetString(I)Ljava/lang/String;
move-result-object p1
.line 1779
iget v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->c:I
const/high16 v1, 0x20000
const/4 v2, 0x1
if-ge v0, v1, :cond_0
const-string v0, "Q3Dimension MSM7500 "
.line 1781
invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result p1
xor-int/2addr p1, v2
iput-boolean p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->e:Z
.line 1782
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
.line 1784
:cond_0
iget-boolean p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->e:Z
xor-int/2addr p1, v2
iput-boolean p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->f:Z
.line 1790
iput-boolean v2, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->d:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 1792
:cond_1
monitor-exit p0
return-void
:catchall_0
move-exception p1
.line 1775
monitor-exit p0
throw p1
.end method
.method public declared-synchronized a()Z
.locals 1
monitor-enter p0
.line 1769
:try_start_0
iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->f:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public declared-synchronized b()Z
.locals 1
monitor-enter p0
.line 1772
:try_start_0
invoke-direct {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->c()V
.line 1773
iget-boolean v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->e:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
xor-int/lit8 v0, v0, 0x1
monitor-exit p0
return v0
:catchall_0
move-exception v0
.line 1771
monitor-exit p0
throw v0
.end method
.method public b(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;)Z
.locals 2
.line 1737
iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;
const/4 v1, 0x1
if-eq v0, p1, :cond_3
iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;
if-nez v0, :cond_0
goto :goto_0
.line 1742
:cond_0
invoke-direct {p0}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->c()V
.line 1743
iget-boolean p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->e:Z
if-eqz p1, :cond_1
return v1
.line 1750
:cond_1
iget-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;
if-eqz p1, :cond_2
.line 1751
iget-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;
invoke-virtual {p1}, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;->i()V
:cond_2
const/4 p1, 0x0
return p1
.line 1738
:cond_3
:goto_0
iput-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;
.line 1739
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
return v1
.end method
.method public c(Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;)V
.locals 1
.line 1760
iget-object v0, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;
if-ne v0, p1, :cond_0
const/4 p1, 0x0
.line 1761
iput-object p1, p0, Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThreadManager;->g:Lcom/badlogic/gdx/backends/android/surfaceview/GLTextureView$GLThread;
.line 1763
:cond_0
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
return-void
.end method