mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: Disable coil pipeline
This commit is contained in:
parent
ec3e307933
commit
1a1e048789
3 changed files with 5 additions and 2 deletions
|
@ -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 -->
|
||||||
|
|
|
@ -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),
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue