Define the JPEG XL decode bound for the local Android image pipeline

This commit is contained in:
Codex
2026-10-24 12:21:17 +03:00
parent f94fbfe14e
commit a5b2dcb3c2
@@ -30,6 +30,8 @@ import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.Executors
private const val MAX_PREALLOC_BYTES = 128 * 1024 * 1024
// Match the upstream GPU texture bound without depending on a newer local image decoder.
private const val MAX_JXL_PIXEL_SIZE = 16384
private class RemoteRequest(val cancellationSignal: CancellationSignal)
@@ -109,7 +111,7 @@ class RemoteImagesImpl(context: Context) : RemoteImageApi {
buffer.offset,
width?.toInt() ?: 0,
height?.toInt() ?: 0,
MAX_PIXEL_SIZE,
MAX_JXL_PIXEL_SIZE,
cancelled,
info
)