/// <summary> /// Initializes <see cref="ImagePipelineFactory"/> with /// default config. /// </summary> private static void Initialize() { Initialize(ImagePipelineConfig.NewBuilder().Build()); }
/// <summary> /// Initializes <see cref="ImagePipelineFactory"/> with /// the specified config. /// </summary> /// <param name="imagePipelineConfig"> /// The imagepipeline configuration. /// </param> public static void Initialize(ImagePipelineConfig imagePipelineConfig) { _instance = new ImagePipelineFactory(imagePipelineConfig); }
/// <summary> /// Instantiates the <see cref="ImagePipelineFactory"/>. /// </summary> public ImagePipelineFactory(ImagePipelineConfig config) { _config = Preconditions.CheckNotNull(config); _threadHandoffProducerQueue = new ThreadHandoffProducerQueue( config.ExecutorSupplier.ForLightweightBackgroundTasks); }