Skip to content

Commit 2fd7a8d

Browse files
Update refs
1 parent dccffdc commit 2fd7a8d

File tree

408 files changed

+801
-795
lines changed

Some content is hidden

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

408 files changed

+801
-795
lines changed

tests/ImageSharp.Drawing.Benchmarks/Drawing/FillParis.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -148,22 +148,22 @@ public void SkiaSharp()
148148
}
149149
}
150150

151-
//[Benchmark]
152-
//public void SystemDrawing()
153-
//{
154-
// foreach ((GraphicsPath path, SDSolidBrush fill, SDPen stroke) in this.sdElements)
155-
// {
156-
// if (fill is not null)
157-
// {
158-
// this.sdGraphics.FillPath(fill, path);
159-
// }
160-
161-
// if (stroke is not null)
162-
// {
163-
// this.sdGraphics.DrawPath(stroke, path);
164-
// }
165-
// }
166-
//}
151+
[Benchmark]
152+
public void SystemDrawing()
153+
{
154+
foreach ((GraphicsPath path, SDSolidBrush fill, SDPen stroke) in this.sdElements)
155+
{
156+
if (fill is not null)
157+
{
158+
this.sdGraphics.FillPath(fill, path);
159+
}
160+
161+
if (stroke is not null)
162+
{
163+
this.sdGraphics.DrawPath(stroke, path);
164+
}
165+
}
166+
}
167167

168168
[Benchmark]
169169
public void ImageSharp()
@@ -209,7 +209,7 @@ internal static void VerifyOutput()
209209
bench.Setup();
210210

211211
bench.SkiaSharp();
212-
// bench.SystemDrawing();
212+
bench.SystemDrawing();
213213
bench.ImageSharp();
214214
bench.ImageSharpWebGPU();
215215
Console.WriteLine($"WebGPU diagnostic last flush used GPU: {bench.webGpuBackend.DiagnosticLastFlushUsedGPU}");

tests/ImageSharp.Drawing.Tests/Processing/Backends/WebGPUDrawingBackendTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ void DrawAction(DrawingCanvas<TPixel> canvas)
19421942
nativeSurfaceInitialImage);
19431943

19441944
DebugSaveBackendPair(provider, "StarWarsCrawl", defaultImage, nativeSurfaceImage);
1945-
AssertBackendPairSimilarity(defaultImage, nativeSurfaceImage, 0.0071F);
1945+
AssertBackendPairSimilarity(defaultImage, nativeSurfaceImage, 0.0074F);
19461946
AssertBackendPairReferenceOutputs(provider, "StarWarsCrawl", defaultImage, nativeSurfaceImage);
19471947
AssertGpuPathWhenRequired(nativeSurfaceBackend);
19481948
}

tests/ImageSharp.Drawing.Tests/Processing/FillParisTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class FillParisTests
2222
private static readonly List<(IPath Path, SolidBrush Fill, SolidPen Stroke)> isElements =
2323
SvgBenchmarkHelper.BuildImageSharpElements(elements, Scale);
2424

25-
[Fact]
25+
[Fact(Skip = "Benchmarking only")]
2626
public void FillParis_ImageSharp_CPU()
2727
{
2828
using Image<Rgba32> image = new(Width, Height);
@@ -43,7 +43,7 @@ public void FillParis_ImageSharp_CPU()
4343
}));
4444
}
4545

46-
[WebGPUFact]
46+
[WebGPUFact(Skip = "Benchmarking Only")]
4747
public void FillParis_ImageSharp_WebGPU()
4848
{
4949
using FillParisWebGpuContext webGpu = new();
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)