File tree Expand file tree Collapse file tree
tests/ImageSharp.Drawing.Tests/TestUtilities Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments