Skip to content

Commit

Permalink
Convert EqualityDelegate to a composition local.
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite committed Oct 25, 2024
1 parent dca993a commit 54768bc
Show file tree
Hide file tree
Showing 17 changed files with 221 additions and 176 deletions.
38 changes: 22 additions & 16 deletions coil-compose-core/api/android/coil-compose-core.api
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
public final class coil3/compose/AsyncImageKt {
public static final fun AsyncImage-J-FEaFM (Ljava/lang/Object;Ljava/lang/String;Lcoil3/ImageLoader;Landroidx/compose/ui/Modifier;Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/painter/Painter;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;FLandroidx/compose/ui/graphics/ColorFilter;IZLcoil3/compose/EqualityDelegate;Landroidx/compose/runtime/Composer;III)V
public static final fun AsyncImage-QgsmV_s (Ljava/lang/Object;Ljava/lang/String;Lcoil3/ImageLoader;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;FLandroidx/compose/ui/graphics/ColorFilter;IZLcoil3/compose/EqualityDelegate;Landroidx/compose/runtime/Composer;III)V
public static final fun AsyncImage-nc27qi8 (Ljava/lang/Object;Ljava/lang/String;Lcoil3/ImageLoader;Landroidx/compose/ui/Modifier;Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/painter/Painter;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;FLandroidx/compose/ui/graphics/ColorFilter;IZLandroidx/compose/runtime/Composer;III)V
public static final fun AsyncImage-sKDTAoQ (Ljava/lang/Object;Ljava/lang/String;Lcoil3/ImageLoader;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;FLandroidx/compose/ui/graphics/ColorFilter;IZLandroidx/compose/runtime/Composer;III)V
}

public abstract interface class coil3/compose/AsyncImageModelEqualityDelegate {
public static final field Companion Lcoil3/compose/AsyncImageModelEqualityDelegate$Companion;
public static final field Default Lcoil3/compose/AsyncImageModelEqualityDelegate;
public abstract fun equals (Ljava/lang/Object;Ljava/lang/Object;)Z
public abstract fun hashCode (Ljava/lang/Object;)I
}

public final class coil3/compose/AsyncImageModelEqualityDelegate$Companion {
}

public final class coil3/compose/AsyncImagePainter : androidx/compose/ui/graphics/painter/Painter, androidx/compose/runtime/RememberObserver {
Expand All @@ -21,9 +31,10 @@ public final class coil3/compose/AsyncImagePainter$Companion {

public final class coil3/compose/AsyncImagePainter$Input {
public static final field $stable I
public fun <init> (Lcoil3/ImageLoader;Lcoil3/request/ImageRequest;)V
public fun <init> (Lcoil3/ImageLoader;Lcoil3/request/ImageRequest;Lcoil3/compose/AsyncImageModelEqualityDelegate;)V
public fun equals (Ljava/lang/Object;)Z
public final fun getImageLoader ()Lcoil3/ImageLoader;
public final fun getModelEqualityDelegate ()Lcoil3/compose/AsyncImageModelEqualityDelegate;
public final fun getRequest ()Lcoil3/request/ImageRequest;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
Expand Down Expand Up @@ -83,8 +94,8 @@ public final class coil3/compose/AsyncImagePainter$State$Success : coil3/compose
}

public final class coil3/compose/AsyncImagePainterKt {
public static final fun rememberAsyncImagePainter-0YpotYA (Ljava/lang/Object;Lcoil3/ImageLoader;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/layout/ContentScale;ILcoil3/compose/EqualityDelegate;Landroidx/compose/runtime/Composer;II)Lcoil3/compose/AsyncImagePainter;
public static final fun rememberAsyncImagePainter-10Xjiaw (Ljava/lang/Object;Lcoil3/ImageLoader;Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/painter/Painter;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/layout/ContentScale;ILcoil3/compose/EqualityDelegate;Landroidx/compose/runtime/Composer;III)Lcoil3/compose/AsyncImagePainter;
public static final fun rememberAsyncImagePainter-3HmZ8SU (Ljava/lang/Object;Lcoil3/ImageLoader;Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/painter/Painter;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/layout/ContentScale;ILandroidx/compose/runtime/Composer;II)Lcoil3/compose/AsyncImagePainter;
public static final fun rememberAsyncImagePainter-5jETZwI (Ljava/lang/Object;Lcoil3/ImageLoader;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/layout/ContentScale;ILandroidx/compose/runtime/Composer;II)Lcoil3/compose/AsyncImagePainter;
}

public abstract interface class coil3/compose/AsyncImagePreviewHandler {
Expand Down Expand Up @@ -124,15 +135,6 @@ public final class coil3/compose/DrawScopeSizeResolverKt {
public static final fun rememberDrawScopeSizeResolver (Landroidx/compose/runtime/Composer;I)Lcoil3/compose/DrawScopeSizeResolver;
}

public abstract interface class coil3/compose/EqualityDelegate {
public abstract fun equals (Ljava/lang/Object;Ljava/lang/Object;)Z
public abstract fun hashCode (Ljava/lang/Object;)I
}

public final class coil3/compose/EqualityDelegateKt {
public static final fun getDefaultModelEqualityDelegate ()Lcoil3/compose/EqualityDelegate;
}

public final class coil3/compose/ImagePainter : androidx/compose/ui/graphics/painter/Painter {
public static final field $stable I
public fun <init> (Lcoil3/Image;)V
Expand All @@ -145,6 +147,10 @@ public final class coil3/compose/ImagePainter_androidKt {
public static synthetic fun asPainter-55t9-rM$default (Lcoil3/Image;Landroid/content/Context;IILjava/lang/Object;)Landroidx/compose/ui/graphics/painter/Painter;
}

public final class coil3/compose/LocalAsyncImageModelEqualityDelegateKt {
public static final fun getLocalAsyncImageModelEqualityDelegate ()Landroidx/compose/runtime/ProvidableCompositionLocal;
}

public final class coil3/compose/LocalAsyncImagePreviewHandlerKt {
public static final fun AsyncImagePreviewHandler (Lkotlin/jvm/functions/Function2;)Lcoil3/compose/AsyncImagePreviewHandler;
public static final fun getLocalAsyncImagePreviewHandler ()Landroidx/compose/runtime/ProvidableCompositionLocal;
Expand All @@ -155,8 +161,8 @@ public final class coil3/compose/LocalPlatformContext_androidKt {
}

public final class coil3/compose/SubcomposeAsyncImageKt {
public static final fun SubcomposeAsyncImage-FSyRiR8 (Ljava/lang/Object;Ljava/lang/String;Lcoil3/ImageLoader;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;FLandroidx/compose/ui/graphics/ColorFilter;IZLcoil3/compose/EqualityDelegate;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;III)V
public static final fun SubcomposeAsyncImage-TCQMD7g (Ljava/lang/Object;Ljava/lang/String;Lcoil3/ImageLoader;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;FLandroidx/compose/ui/graphics/ColorFilter;IZLcoil3/compose/EqualityDelegate;Landroidx/compose/runtime/Composer;III)V
public static final fun SubcomposeAsyncImage-MokUVwQ (Ljava/lang/Object;Ljava/lang/String;Lcoil3/ImageLoader;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;FLandroidx/compose/ui/graphics/ColorFilter;IZLandroidx/compose/runtime/Composer;III)V
public static final fun SubcomposeAsyncImage-QgsmV_s (Ljava/lang/Object;Ljava/lang/String;Lcoil3/ImageLoader;Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;FLandroidx/compose/ui/graphics/ColorFilter;IZLkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;III)V
public static final fun SubcomposeAsyncImageContent (Lcoil3/compose/SubcomposeAsyncImageScope;Landroidx/compose/ui/Modifier;Landroidx/compose/ui/graphics/painter/Painter;Ljava/lang/String;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;FLandroidx/compose/ui/graphics/ColorFilter;ZLandroidx/compose/runtime/Composer;II)V
}

Expand Down
Loading

0 comments on commit 54768bc

Please sign in to comment.