Пример #1
0
        /// <summary>
        /// Initializes <see cref="ImagePipelineFactory"/> with
        /// default config.
        /// </summary>

        private static void Initialize()
        {
            Initialize(ImagePipelineConfig.NewBuilder().Build());
        }
Пример #2
0
 /// <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);
 }
Пример #3
0
 /// <summary>
 /// Instantiates the <see cref="ImagePipelineFactory"/>.
 /// </summary>
 public ImagePipelineFactory(ImagePipelineConfig config)
 {
     _config = Preconditions.CheckNotNull(config);
     _threadHandoffProducerQueue = new ThreadHandoffProducerQueue(
         config.ExecutorSupplier.ForLightweightBackgroundTasks);
 }