chore: Disable coil pipeline

This commit is contained in:
Ahmad Ansori Palembani 2024-05-23 18:50:27 +07:00
parent ec3e307933
commit 1a1e048789
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
3 changed files with 5 additions and 2 deletions

View file

@ -22,4 +22,4 @@
## Other ## Other
- Added Unit Test for version checker - Added Unit Test for version checker
- Use Coil pipeline instead of SSIV for image decode, might improve Webtoon performance <!-- - Use Coil pipeline instead of SSIV for image decode, might improve Webtoon performance -->

View file

@ -55,6 +55,7 @@ class TachiyomiImageDecoder(private val resources: ImageSource, private val opti
} }
} }
/*
val maxTextureSize = 4096f val maxTextureSize = 4096f
if (maxOf(bitmap.width, bitmap.height) > maxTextureSize) { if (maxOf(bitmap.width, bitmap.height) > maxTextureSize) {
val widthRatio = bitmap.width / maxTextureSize val widthRatio = bitmap.width / maxTextureSize
@ -75,6 +76,7 @@ class TachiyomiImageDecoder(private val resources: ImageSource, private val opti
bitmap.recycle() bitmap.recycle()
bitmap = scaledBitmap bitmap = scaledBitmap
} }
*/
return DecodeResult( return DecodeResult(
drawable = bitmap.toDrawable(options.context.resources), drawable = bitmap.toDrawable(options.context.resources),

View file

@ -223,7 +223,8 @@ open class ReaderPageImageView @JvmOverloads constructor(
}, },
) )
if (isWebtoon) { val useCoilPipeline = false // FIXME: "Bitmap too large to be uploaded into a texture"
if (isWebtoon && useCoilPipeline) {
val request = ImageRequest.Builder(context) val request = ImageRequest.Builder(context)
.data(image) .data(image)
.memoryCachePolicy(CachePolicy.DISABLED) .memoryCachePolicy(CachePolicy.DISABLED)