Skip to content

Commit fc1c65c

Browse files
Update reference images
1 parent 5ac7af4 commit fc1c65c

128 files changed

Lines changed: 236 additions & 272 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/ImageSharp.Drawing.Benchmarks/Drawing/DrawPolygon.cs

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -195,28 +195,17 @@ public void SystemDrawing()
195195
public void ImageSharp()
196196
=> this.image.Mutate(c => c.ProcessWithCanvas(canvas => canvas.Draw(this.isPen, this.imageSharpPath)));
197197

198-
[Benchmark(Description = "ImageSharp Combined Paths WebGPU Backend")]
199-
public void ImageSharpCombinedPathsWebGPUBackend()
198+
[Benchmark]
199+
public void ImageSharpCWebGPUMemoryBuffer()
200200
=> this.webGpuImage.Mutate(c => c.ProcessWithCanvas(canvas => canvas.Draw(this.isPen, this.imageSharpPath)));
201201

202-
[Benchmark(Description = "ImageSharp Combined Paths WebGPU NativeSurface")]
203-
public void ImageSharpCombinedPathsWebGPUNativeSurface()
202+
[Benchmark]
203+
public void ImageSharpWebGPUNativeSurface()
204204
{
205205
using DrawingCanvas<Rgba32> canvas = new(this.webGpuConfiguration, this.webGpuNativeFrame, new DrawingOptions());
206206
canvas.Draw(this.isPen, this.imageSharpPath);
207207
canvas.Flush();
208208
}
209-
210-
[Benchmark]
211-
public IPath ImageSharpStroke() => this.isPen.GeneratePath(this.imageSharpPath);
212-
213-
[Benchmark]
214-
public void FillPolygon()
215-
=> this.image.Mutate(c => c.ProcessWithCanvas(canvas => canvas.Fill(this.strokedImageSharpPath, Processing.Brushes.Solid(Color.White))));
216-
217-
[Benchmark]
218-
public void FillPolygonWebGPUBackend()
219-
=> this.webGpuImage.Mutate(c => c.ProcessWithCanvas(canvas => canvas.Fill(this.strokedImageSharpPath, Processing.Brushes.Solid(Color.White))));
220209
}
221210

222211
public class DrawPolygonAll : DrawPolygon
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)