Skip to content

Commit 6dda3f1

Browse files
committed
SixLabors#542: rename file to match other files in the solution (include generic)
1 parent bd3faf7 commit 6dda3f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ImageSharp.Drawing/Processing/Drawing/Brushes/LinearGradientBrush.cs renamed to src/ImageSharp.Drawing/Processing/Drawing/Brushes/LinearGradientBrush{TPixel}.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ internal override void Apply(Span<float> scanline, int x, int y)
238238
{
239239
base.Apply(scanline, x, y);
240240

241+
// TODO: we should at least(!) speed up the x=0 and y=0 special cases.
242+
// But in fact that could be done by special case Applicators directly:
243+
// - horizontal would apply a precalc. row independent of given row,
244+
// - vertical would get the color of the row once and fill the whole line.
245+
241246
// Span<TPixel> destinationRow = this.Target.GetPixelRowSpan(y).Slice(x, scanline.Length);
242247
// MemoryManager memoryManager = this.Target.MemoryManager;
243248
// using (IBuffer<float> amountBuffer = memoryManager.Allocate<float>(scanline.Length))

0 commit comments

Comments
 (0)