StreamBitmapDecoder$UntrustedCallbacks.smali
.class Lcom/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder$UntrustedCallbacks;
.super Ljava/lang/Object;
.source "StreamBitmapDecoder.java"
# interfaces
.implements Lcom/bumptech/glide/load/resource/bitmap/Downsampler$DecodeCallbacks;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "UntrustedCallbacks"
.end annotation
# instance fields
.field private final bufferedStream:Lcom/bumptech/glide/load/resource/bitmap/RecyclableBufferedInputStream;
.field private final exceptionStream:Lcom/bumptech/glide/util/ExceptionCatchingInputStream;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lcom/bumptech/glide/load/resource/bitmap/RecyclableBufferedInputStream;Lcom/bumptech/glide/util/ExceptionCatchingInputStream;)V
.registers 3
.param p1, "bufferedStream" # Lcom/bumptech/glide/load/resource/bitmap/RecyclableBufferedInputStream;
.param p2, "exceptionStream" # Lcom/bumptech/glide/util/ExceptionCatchingInputStream;
.line 81
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 82
iput-object p1, p0, Lcom/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder$UntrustedCallbacks;->bufferedStream:Lcom/bumptech/glide/load/resource/bitmap/RecyclableBufferedInputStream;
.line 83
iput-object p2, p0, Lcom/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder$UntrustedCallbacks;->exceptionStream:Lcom/bumptech/glide/util/ExceptionCatchingInputStream;
.line 84
return-void
.end method
# virtual methods
.method public onDecodeComplete(Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Landroid/graphics/Bitmap;)V
.registers 4
.param p1, "bitmapPool" # Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
.param p2, "downsampled" # Landroid/graphics/Bitmap;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 100
iget-object v0, p0, Lcom/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder$UntrustedCallbacks;->exceptionStream:Lcom/bumptech/glide/util/ExceptionCatchingInputStream;
invoke-virtual {v0}, Lcom/bumptech/glide/util/ExceptionCatchingInputStream;->getException()Ljava/io/IOException;
move-result-object v0
.line 101
.local v0, "streamException":Ljava/io/IOException;
if-eqz v0, :cond_e
.line 102
if-eqz p2, :cond_d
.line 103
invoke-interface {p1, p2}, Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;->put(Landroid/graphics/Bitmap;)V
.line 105
:cond_d
throw v0
.line 107
:cond_e
return-void
.end method
.method public onObtainBounds()V
.registers 2
.line 91
iget-object v0, p0, Lcom/bumptech/glide/load/resource/bitmap/StreamBitmapDecoder$UntrustedCallbacks;->bufferedStream:Lcom/bumptech/glide/load/resource/bitmap/RecyclableBufferedInputStream;
invoke-virtual {v0}, Lcom/bumptech/glide/load/resource/bitmap/RecyclableBufferedInputStream;->fixMarkLimit()V
.line 92
return-void
.end method