diff --git a/src/ImageSharp/Processing/Processors/Transforms/Linear/FlipProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Transforms/Linear/FlipProcessor{TPixel}.cs
index f5fde8a22..30d413288 100644
--- a/src/ImageSharp/Processing/Processors/Transforms/Linear/FlipProcessor{TPixel}.cs
+++ b/src/ImageSharp/Processing/Processors/Transforms/Linear/FlipProcessor{TPixel}.cs
@@ -5,7 +5,6 @@ using System;
using System.Buffers;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Advanced;
-using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Processing.Processors.Transforms
@@ -76,28 +75,22 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms
/// The configuration.
private void FlipY(ImageFrame source, Configuration configuration)
{
- var operation = new RowIntervalOperation(source);
- ParallelRowIterator.IterateRowIntervals(
+ var operation = new RowOperation(source);
+ ParallelRowIterator.IterateRows(
configuration,
source.Bounds(),
in operation);
}
- private readonly struct RowIntervalOperation : IRowIntervalOperation
+ private readonly struct RowOperation : IRowOperation
{
private readonly ImageFrame source;
[MethodImpl(InliningOptions.ShortMethod)]
- public RowIntervalOperation(ImageFrame source) => this.source = source;
+ public RowOperation(ImageFrame source) => this.source = source;
[MethodImpl(InliningOptions.ShortMethod)]
- public void Invoke(in RowInterval rows)
- {
- for (int y = rows.Min; y < rows.Max; y++)
- {
- this.source.GetPixelRowSpan(y).Reverse();
- }
- }
+ public void Invoke(int y) => this.source.GetPixelRowSpan(y).Reverse();
}
}
}