GifDrawableTransformation.smali
.class public Lcom/bumptech/glide/load/resource/gif/GifDrawableTransformation;
.super Ljava/lang/Object;
.source "GifDrawableTransformation.java"
# interfaces
.implements Lcom/bumptech/glide/load/Transformation;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/bumptech/glide/load/Transformation<",
"Lcom/bumptech/glide/load/resource/gif/GifDrawable;",
">;"
}
.end annotation
# instance fields
.field private final wrapped:Lcom/bumptech/glide/load/Transformation;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bumptech/glide/load/Transformation<",
"Landroid/graphics/Bitmap;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/bumptech/glide/load/Transformation;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/bumptech/glide/load/Transformation<",
"Landroid/graphics/Bitmap;",
">;)V"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 31
invoke-direct {p0, p2}, Lcom/bumptech/glide/load/resource/gif/GifDrawableTransformation;-><init>(Lcom/bumptech/glide/load/Transformation;)V
return-void
.end method
.method public constructor <init>(Lcom/bumptech/glide/load/Transformation;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/load/Transformation<",
"Landroid/graphics/Bitmap;",
">;)V"
}
.end annotation
.line 21
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 22
invoke-static {p1}, Lcom/bumptech/glide/util/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/bumptech/glide/load/Transformation;
iput-object p1, p0, Lcom/bumptech/glide/load/resource/gif/GifDrawableTransformation;->wrapped:Lcom/bumptech/glide/load/Transformation;
return-void
.end method
.method public constructor <init>(Lcom/bumptech/glide/load/Transformation;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/bumptech/glide/load/Transformation<",
"Landroid/graphics/Bitmap;",
">;",
"Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;",
")V"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 40
invoke-direct {p0, p1}, Lcom/bumptech/glide/load/resource/gif/GifDrawableTransformation;-><init>(Lcom/bumptech/glide/load/Transformation;)V
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.registers 3
.line 68
instance-of v0, p1, Lcom/bumptech/glide/load/resource/gif/GifDrawableTransformation;
if-eqz v0, :cond_f
.line 69
check-cast p1, Lcom/bumptech/glide/load/resource/gif/GifDrawableTransformation;
.line 70
iget-object v0, p0, Lcom/bumptech/glide/load/resource/gif/GifDrawableTransformation;->wrapped:Lcom/bumptech/glide/load/Transformation;
iget-object p1, p1, Lcom/bumptech/glide/load/resource/gif/GifDrawableTransformation;->wrapped:Lcom/bumptech/glide/load/Transformation;
invoke-interface {v0, p1}, Lcom/bumptech/glide/load/Transformation;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_f
const/4 p1, 0x0
return p1
.end method
.method public hashCode()I
.registers 2
.line 77
iget-object v0, p0, Lcom/bumptech/glide/load/resource/gif/GifDrawableTransformation;->wrapped:Lcom/bumptech/glide/load/Transformation;
invoke-interface {v0}, Lcom/bumptech/glide/load/Transformation;->hashCode()I
move-result v0
return v0
.end method
.method public transform(Landroid/content/Context;Lcom/bumptech/glide/load/engine/Resource;II)Lcom/bumptech/glide/load/engine/Resource;
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/bumptech/glide/load/engine/Resource<",
"Lcom/bumptech/glide/load/resource/gif/GifDrawable;",
">;II)",
"Lcom/bumptech/glide/load/engine/Resource<",
"Lcom/bumptech/glide/load/resource/gif/GifDrawable;",
">;"
}
.end annotation
.line 46
invoke-interface {p2}, Lcom/bumptech/glide/load/engine/Resource;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/bumptech/glide/load/resource/gif/GifDrawable;
.line 53
invoke-static {p1}, Lcom/bumptech/glide/Glide;->get(Landroid/content/Context;)Lcom/bumptech/glide/Glide;
move-result-object v1
invoke-virtual {v1}, Lcom/bumptech/glide/Glide;->getBitmapPool()Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;
move-result-object v1
.line 54
invoke-virtual {v0}, Lcom/bumptech/glide/load/resource/gif/GifDrawable;->getFirstFrame()Landroid/graphics/Bitmap;
move-result-object v2
.line 55
new-instance v3, Lcom/bumptech/glide/load/resource/bitmap/BitmapResource;
invoke-direct {v3, v2, v1}, Lcom/bumptech/glide/load/resource/bitmap/BitmapResource;-><init>(Landroid/graphics/Bitmap;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)V
.line 56
iget-object v1, p0, Lcom/bumptech/glide/load/resource/gif/GifDrawableTransformation;->wrapped:Lcom/bumptech/glide/load/Transformation;
invoke-interface {v1, p1, v3, p3, p4}, Lcom/bumptech/glide/load/Transformation;->transform(Landroid/content/Context;Lcom/bumptech/glide/load/engine/Resource;II)Lcom/bumptech/glide/load/engine/Resource;
move-result-object p1
.line 57
invoke-virtual {v3, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p3
if-nez p3, :cond_26
.line 58
invoke-interface {v3}, Lcom/bumptech/glide/load/engine/Resource;->recycle()V
.line 60
:cond_26
invoke-interface {p1}, Lcom/bumptech/glide/load/engine/Resource;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/graphics/Bitmap;
.line 62
iget-object p3, p0, Lcom/bumptech/glide/load/resource/gif/GifDrawableTransformation;->wrapped:Lcom/bumptech/glide/load/Transformation;
invoke-virtual {v0, p3, p1}, Lcom/bumptech/glide/load/resource/gif/GifDrawable;->setFrameTransformation(Lcom/bumptech/glide/load/Transformation;Landroid/graphics/Bitmap;)V
return-object p2
.end method
.method public updateDiskCacheKey(Ljava/security/MessageDigest;)V
.registers 3
.line 82
iget-object v0, p0, Lcom/bumptech/glide/load/resource/gif/GifDrawableTransformation;->wrapped:Lcom/bumptech/glide/load/Transformation;
invoke-interface {v0, p1}, Lcom/bumptech/glide/load/Transformation;->updateDiskCacheKey(Ljava/security/MessageDigest;)V
return-void
.end method