From ad32cafb2eda4c9e8821cae59c51bdf6621a64cd Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 27 Nov 2019 13:05:16 +0100 Subject: [PATCH] Removed execution mode field in pixel specific processor --- .../Convolution/BokehBlurProcessor{TPixel}.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/ImageSharp/Processing/Processors/Convolution/BokehBlurProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Convolution/BokehBlurProcessor{TPixel}.cs index 9c784099ca..e6525cc8a4 100644 --- a/src/ImageSharp/Processing/Processors/Convolution/BokehBlurProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/Convolution/BokehBlurProcessor{TPixel}.cs @@ -36,11 +36,6 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution /// private readonly float gamma; - /// - /// The execution mode to use when applying the effect - /// - private readonly BokehBlurExecutionMode executionMode; - /// /// The maximum size of the kernel in either direction /// @@ -84,7 +79,6 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution this.kernelSize = (this.radius * 2) + 1; this.componentsCount = definition.Components; this.gamma = definition.Gamma; - this.executionMode = definition.ExecutionMode; // Reuse the initialized values from the cache, if possible var parameters = new BokehBlurParameters(this.radius, this.componentsCount); @@ -396,12 +390,6 @@ namespace SixLabors.ImageSharp.Processing.Processors.Convolution var workingRectangle = Rectangle.FromLTRB(startX, startY, endX, endY); int width = workingRectangle.Width; - if (this.executionMode == BokehBlurExecutionMode.PreferLowMemoryUsage) - { - configuration = configuration.Clone(); - configuration.MaxDegreeOfParallelism = 1; - } - ParallelHelper.IterateRows( workingRectangle, configuration,