Skip to content

Commit

Permalink
Merge branch 'main' into cb/data-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbanes committed Jul 7, 2020
2 parents 156802e + 8b6494f commit 3526db6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Expand Up @@ -21,7 +21,7 @@ object Versions {
}

object Libs {
const val androidGradlePlugin = "com.android.tools.build:gradle:4.2.0-alpha02"
const val androidGradlePlugin = "com.android.tools.build:gradle:4.2.0-alpha03"

const val gradleMavenPublishPlugin = "com.vanniktech:gradle-maven-publish-plugin:0.11.1"

Expand Down
6 changes: 6 additions & 0 deletions coil/src/main/java/dev/chrisbanes/accompanist/coil/Coil.kt
Expand Up @@ -224,6 +224,12 @@ private fun CoilRequestActor(
Coil.imageLoader(transformedRequest.context)
.execute(transformedRequest)
.toResult(size)
.also {
// Tell RenderThread to pre-upload this bitmap. Saves the GPU upload cost on the
// first draw. See https://github.com/square/picasso/issues/1620 for a explanation
// from @ChrisCraik
it.image?.prepareToDraw()
}
}
}

Expand Down

0 comments on commit 3526db6

Please sign in to comment.