BitmapDrawableTransformation.smali
.class public Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation;
.super Ljava/lang/Object;
.source "BitmapDrawableTransformation.java"
# interfaces
.implements Lcom/bumptech/glide/load/Transformation;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/bumptech/glide/load/Transformation<",
"Landroid/graphics/drawable/BitmapDrawable;",
">;"
}
.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 30
invoke-direct {p0, p2}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation;-><init>(Lcom/bumptech/glide/load/Transformation;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;Lcom/bumptech/glide/load/Transformation;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;",
"Lcom/bumptech/glide/load/Transformation<",
"Landroid/graphics/Bitmap;",
">;)V"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 41
invoke-direct {p0, p3}, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation;-><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 20
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 21
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/bitmap/BitmapDrawableTransformation;->wrapped:Lcom/bumptech/glide/load/Transformation;
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.registers 3
.line 65
instance-of v0, p1, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation;
if-eqz v0, :cond_f
.line 66
check-cast p1, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation;
.line 67
iget-object v0, p0, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation;->wrapped:Lcom/bumptech/glide/load/Transformation;
iget-object p1, p1, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation;->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 74
iget-object v0, p0, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation;->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 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/bumptech/glide/load/engine/Resource<",
"Landroid/graphics/drawable/BitmapDrawable;",
">;II)",
"Lcom/bumptech/glide/load/engine/Resource<",
"Landroid/graphics/drawable/BitmapDrawable;",
">;"
}
.end annotation
.line 48
invoke-interface {p2}, Lcom/bumptech/glide/load/engine/Resource;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/graphics/drawable/BitmapDrawable;
.line 49
invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
move-result-object v0
.line 51
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 52
invoke-static {v0, v1}, Lcom/bumptech/glide/load/resource/bitmap/BitmapResource;->obtain(Landroid/graphics/Bitmap;Lcom/bumptech/glide/load/engine/bitmap_recycle/BitmapPool;)Lcom/bumptech/glide/load/resource/bitmap/BitmapResource;
move-result-object v0
.line 53
iget-object v1, p0, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation;->wrapped:Lcom/bumptech/glide/load/Transformation;
.line 54
invoke-interface {v1, p1, v0, 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 p3
.line 56
invoke-virtual {p3, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result p4
if-eqz p4, :cond_23
return-object p2
.line 59
:cond_23
invoke-interface {p3}, Lcom/bumptech/glide/load/engine/Resource;->get()Ljava/lang/Object;
move-result-object p2
check-cast p2, Landroid/graphics/Bitmap;
invoke-static {p1, p2}, Lcom/bumptech/glide/load/resource/bitmap/LazyBitmapDrawableResource;->obtain(Landroid/content/Context;Landroid/graphics/Bitmap;)Lcom/bumptech/glide/load/resource/bitmap/LazyBitmapDrawableResource;
move-result-object p1
return-object p1
.end method
.method public updateDiskCacheKey(Ljava/security/MessageDigest;)V
.registers 3
.line 79
iget-object v0, p0, Lcom/bumptech/glide/load/resource/bitmap/BitmapDrawableTransformation;->wrapped:Lcom/bumptech/glide/load/Transformation;
invoke-interface {v0, p1}, Lcom/bumptech/glide/load/Transformation;->updateDiskCacheKey(Ljava/security/MessageDigest;)V
return-void
.end method