Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion externals/skia
20 changes: 19 additions & 1 deletion tests/SkiaSharp.Tests.Devices/Tests/iOS/iOSExtensionsTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using CoreGraphics;
using System;
using CoreGraphics;
using Foundation;
using Metal;
using Xunit;

namespace SkiaSharp.Views.iOS.Tests
Expand Down Expand Up @@ -99,5 +101,21 @@ public void CGRectToSKRect(int x, int y, int w, int h)

Assert.Equal(expected, actual);
}

[SkippableFact]
public void GRContextDisposeDoesNotCrash()
{
var device = MTLDevice.SystemDefault!;
Skip.If(device == null, "Metal is not supported on this device.");

using var commandQueue = device.CreateCommandQueue();
using var backendContext = new GRMtlBackendContext()
{
Device = device,
Queue = commandQueue,
};

using var context = GRContext.CreateMetal(backendContext);
}
}
}