Browse Source
Merge pull request #1841 from SixLabors/af/EuclideanPixelMap-readonly
Make ColorDistanceCache non-readonly
pull/1844/head
James Jackson-South
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
src/ImageSharp/Processing/Processors/Quantization/EuclideanPixelMap{TPixel}.cs
|
|
|
@ -22,7 +22,9 @@ namespace SixLabors.ImageSharp.Processing.Processors.Quantization |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
|
{ |
|
|
|
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; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|