Skip to content

Commit 0019fdb

Browse files
Update To Stable Dependencies (#395)
* Update ImageSharp.Drawing.csproj * Update TestMemoryAllocator.cs
1 parent 175f085 commit 0019fdb

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/ImageSharp.Drawing/ImageSharp.Drawing.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
<None Include="..\..\shared-infrastructure\branding\icons\imagesharp.drawing\sixlabors.imagesharp.drawing.128.png" Pack="true" PackagePath="" />
4141
</ItemGroup>
4242
<ItemGroup>
43-
<PackageReference Include="SixLabors.Fonts" Version="3.0.0-alpha.0.48" />
44-
<PackageReference Include="SixLabors.ImageSharp" Version="4.0.0-alpha.0.106" />
45-
<PackageReference Include="SixLabors.PolygonClipper" Version="1.0.0-alpha.0.58" />
43+
<PackageReference Include="SixLabors.Fonts" Version="3.0.0" />
44+
<PackageReference Include="SixLabors.ImageSharp" Version="4.0.0" />
45+
<PackageReference Include="SixLabors.PolygonClipper" Version="1.0.0" />
4646
</ItemGroup>
4747

4848
<Import Project="..\..\shared-infrastructure\src\SharedInfrastructure\SharedInfrastructure.projitems" Label="Shared" />

tests/ImageSharp.Drawing.Tests/TestUtilities/TestMemoryAllocator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal class TestMemoryAllocator : MemoryAllocator
2828

2929
protected internal override int GetBufferCapacityInBytes() => this.BufferCapacityInBytes;
3030

31-
public override IMemoryOwner<T> Allocate<T>(int length, AllocationOptions options = AllocationOptions.None)
31+
protected override AllocationTrackedMemoryManager<T> AllocateCore<T>(int length, AllocationOptions options = AllocationOptions.None)
3232
{
3333
T[] array = this.AllocateArray<T>(length, options);
3434
return new BasicArrayBuffer<T>(array, length, this);
@@ -95,7 +95,7 @@ public struct ReturnRequest
9595
/// <summary>
9696
/// Wraps an array as an <see cref="IManagedByteBuffer"/> instance.
9797
/// </summary>
98-
private class BasicArrayBuffer<T> : MemoryManager<T>
98+
private class BasicArrayBuffer<T> : AllocationTrackedMemoryManager<T>
9999
where T : struct
100100
{
101101
private readonly TestMemoryAllocator allocator;
@@ -140,7 +140,7 @@ public override unsafe MemoryHandle Pin(int elementIndex = 0)
140140
public override void Unpin() => throw new NotImplementedException();
141141

142142
/// <inheritdoc />
143-
protected override void Dispose(bool disposing)
143+
protected override void DisposeCore(bool disposing)
144144
{
145145
if (disposing)
146146
{

0 commit comments

Comments
 (0)