override fun createProducerFactory()

in imagepipeline/src/main/java/com/facebook/imagepipeline/core/ImagePipelineExperiments.kt [318:368]


    override fun createProducerFactory(
        context: Context,
        byteArrayPool: ByteArrayPool,
        imageDecoder: ImageDecoder,
        progressiveJpegConfig: ProgressiveJpegConfig,
        downsampleEnabled: Boolean,
        resizeAndRotateEnabledForNetwork: Boolean,
        decodeCancellationEnabled: Boolean,
        executorSupplier: ExecutorSupplier,
        pooledByteBufferFactory: PooledByteBufferFactory,
        pooledByteStreams: PooledByteStreams,
        bitmapMemoryCache: MemoryCache<CacheKey?, CloseableImage?>,
        encodedMemoryCache: MemoryCache<CacheKey?, PooledByteBuffer?>,
        defaultBufferedDiskCache: BufferedDiskCache,
        smallImageBufferedDiskCache: BufferedDiskCache,
        cacheKeyFactory: CacheKeyFactory,
        platformBitmapFactory: PlatformBitmapFactory,
        bitmapPrepareToDrawMinSizeBytes: Int,
        bitmapPrepareToDrawMaxSizeBytes: Int,
        bitmapPrepareToDrawForPrefetch: Boolean,
        maxBitmapSize: Int,
        closeableReferenceFactory: CloseableReferenceFactory,
        keepCancelledFetchAsLowPriority: Boolean,
        trackedKeysSize: Int
    ): ProducerFactory =
        ProducerFactory(
            context!!,
            byteArrayPool!!,
            imageDecoder!!,
            progressiveJpegConfig!!,
            downsampleEnabled,
            resizeAndRotateEnabledForNetwork,
            decodeCancellationEnabled,
            executorSupplier!!,
            pooledByteBufferFactory!!,
            bitmapMemoryCache!!,
            encodedMemoryCache!!,
            defaultBufferedDiskCache!!,
            smallImageBufferedDiskCache!!,
            cacheKeyFactory!!,
            platformBitmapFactory!!,
            bitmapPrepareToDrawMinSizeBytes,
            bitmapPrepareToDrawMaxSizeBytes,
            bitmapPrepareToDrawForPrefetch,
            maxBitmapSize,
            closeableReferenceFactory!!,
            keepCancelledFetchAsLowPriority,
            trackedKeysSize)
  }

  init {