Browse Source

Merge branch 'master' into bp/upscalesse

pull/1836/head
Brian Popow 5 years ago
committed by GitHub
parent
commit
d3a7a4ad10
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/ImageSharp/Processing/Processors/Quantization/EuclideanPixelMap{TPixel}.cs

4
src/ImageSharp/Processing/Processors/Quantization/EuclideanPixelMap{TPixel}.cs

@ -22,7 +22,9 @@ namespace SixLabors.ImageSharp.Processing.Processors.Quantization
where TPixel : unmanaged, IPixel<TPixel> where TPixel : unmanaged, IPixel<TPixel>
{ {
private Rgba32[] rgbaPalette; private Rgba32[] rgbaPalette;
private readonly ColorDistanceCache cache;
// Do not make this readonly! Struct value would be always copied on non-readonly method calls.
private ColorDistanceCache cache;
private readonly Configuration configuration; private readonly Configuration configuration;
/// <summary> /// <summary>

Loading…
Cancel
Save