EchoesGLSurfaceView$SyncHelper.smali

.class final Lcom/sandboxol/clothes/EchoesGLSurfaceView$SyncHelper;
.super Ljava/lang/Object;
.source "EchoesGLSurfaceView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/sandboxol/clothes/EchoesGLSurfaceView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1a
    name = "SyncHelper"
.end annotation


# static fields
.field private static final instance:Lcom/sandboxol/clothes/EchoesGLSurfaceView$SyncHelper;


# instance fields
.field private handler:Landroid/os/Handler;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .line 1
    new-instance v0, Lcom/sandboxol/clothes/EchoesGLSurfaceView$SyncHelper;

    invoke-direct {v0}, Lcom/sandboxol/clothes/EchoesGLSurfaceView$SyncHelper;-><init>()V

    sput-object v0, Lcom/sandboxol/clothes/EchoesGLSurfaceView$SyncHelper;->instance:Lcom/sandboxol/clothes/EchoesGLSurfaceView$SyncHelper;

    return-void
.end method

.method private constructor <init>()V
    .registers 3

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

    .line 2
    new-instance v0, Landroid/os/HandlerThread;

    const-string v1, "Handler-Clothes"

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

    .line 3
    invoke-virtual {v0}, Landroid/os/HandlerThread;->start()V

    .line 4
    new-instance v1, Landroid/os/Handler;

    invoke-virtual {v0}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-direct {v1, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object v1, p0, Lcom/sandboxol/clothes/EchoesGLSurfaceView$SyncHelper;->handler:Landroid/os/Handler;

    return-void
.end method

.method static synthetic access$000()Lcom/sandboxol/clothes/EchoesGLSurfaceView$SyncHelper;
    .registers 1

    .line 1
    sget-object v0, Lcom/sandboxol/clothes/EchoesGLSurfaceView$SyncHelper;->instance:Lcom/sandboxol/clothes/EchoesGLSurfaceView$SyncHelper;

    return-object v0
.end method

.method static synthetic access$100(Lcom/sandboxol/clothes/EchoesGLSurfaceView$SyncHelper;Ljava/lang/Runnable;)V
    .registers 2

    .line 1
    invoke-direct {p0, p1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView$SyncHelper;->post(Ljava/lang/Runnable;)V

    return-void
.end method

.method private post(Ljava/lang/Runnable;)V
    .registers 3

    .line 1
    iget-object v0, p0, Lcom/sandboxol/clothes/EchoesGLSurfaceView$SyncHelper;->handler:Landroid/os/Handler;

    invoke-virtual {v0, p1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method