diff --git a/src/ImageSharp/Advanced/IRowAction.cs b/src/ImageSharp/Advanced/IRowOperation.cs
similarity index 92%
rename from src/ImageSharp/Advanced/IRowAction.cs
rename to src/ImageSharp/Advanced/IRowOperation.cs
index b541160af..0a6065e4b 100644
--- a/src/ImageSharp/Advanced/IRowAction.cs
+++ b/src/ImageSharp/Advanced/IRowOperation.cs
@@ -6,7 +6,7 @@ namespace SixLabors.ImageSharp.Advanced
///
/// Defines the contract for an action that operates on a row.
///
- public interface IRowAction
+ public interface IRowOperation
{
///
/// Invokes the method passing the row y coordinate.
diff --git a/src/ImageSharp/Advanced/IRowAction{TBuffer}.cs b/src/ImageSharp/Advanced/IRowOperation{TBuffer}.cs
similarity index 94%
rename from src/ImageSharp/Advanced/IRowAction{TBuffer}.cs
rename to src/ImageSharp/Advanced/IRowOperation{TBuffer}.cs
index aff043aa2..7a13930fa 100644
--- a/src/ImageSharp/Advanced/IRowAction{TBuffer}.cs
+++ b/src/ImageSharp/Advanced/IRowOperation{TBuffer}.cs
@@ -9,7 +9,7 @@ namespace SixLabors.ImageSharp.Advanced
/// Defines the contract for an action that operates on a row with a temporary buffer.
///
/// The type of buffer elements.
- public interface IRowAction
+ public interface IRowOperation
where TBuffer : unmanaged
{
///
diff --git a/src/ImageSharp/Advanced/ParallelRowIterator.Wrappers.cs b/src/ImageSharp/Advanced/ParallelRowIterator.Wrappers.cs
index bd30d4ff4..7c3861fdf 100644
--- a/src/ImageSharp/Advanced/ParallelRowIterator.Wrappers.cs
+++ b/src/ImageSharp/Advanced/ParallelRowIterator.Wrappers.cs
@@ -38,14 +38,14 @@ namespace SixLabors.ImageSharp.Advanced
}
}
- private readonly struct WrappingRowAction
- where T : struct, IRowAction
+ private readonly struct RowOperationWrapper
+ where T : struct, IRowOperation
{
private readonly IterationParameters info;
private readonly T action;
[MethodImpl(InliningOptions.ShortMethod)]
- public WrappingRowAction(in IterationParameters info, in T action)
+ public RowOperationWrapper(in IterationParameters info, in T action)
{
this.info = info;
this.action = action;
@@ -71,8 +71,8 @@ namespace SixLabors.ImageSharp.Advanced
}
}
- private readonly struct WrappingRowAction
- where T : struct, IRowAction
+ private readonly struct RowOperationWrapper
+ where T : struct, IRowOperation
where TBuffer : unmanaged
{
private readonly IterationParameters info;
@@ -80,7 +80,7 @@ namespace SixLabors.ImageSharp.Advanced
private readonly T action;
[MethodImpl(InliningOptions.ShortMethod)]
- public WrappingRowAction(
+ public RowOperationWrapper(
in IterationParameters info,
MemoryAllocator allocator,
in T action)
@@ -102,7 +102,7 @@ namespace SixLabors.ImageSharp.Advanced
int yMax = Math.Min(yMin + this.info.StepY, this.info.MaxY);
- using IMemoryOwner buffer = this.allocator.Allocate(this.info.MaxX);
+ using IMemoryOwner buffer = this.allocator.Allocate(this.info.Width);
Span span = buffer.Memory.Span;