Browse Source

Fix CalendarBenchmark not working with new text layout.

pull/3651/head
Dariusz Komosinski 6 years ago
parent
commit
0ee508bfa8
  1. 11
      tests/Avalonia.Benchmarks/NullGlyphRun.cs
  2. 4
      tests/Avalonia.Benchmarks/NullRenderingPlatform.cs

11
tests/Avalonia.Benchmarks/NullGlyphRun.cs

@ -0,0 +1,11 @@
using Avalonia.Platform;
namespace Avalonia.Benchmarks
{
internal class NullGlyphRun : IGlyphRunImpl
{
public void Dispose()
{
}
}
}

4
tests/Avalonia.Benchmarks/NullRenderingPlatform.cs

@ -72,7 +72,9 @@ namespace Avalonia.Benchmarks
public IGlyphRunImpl CreateGlyphRun(GlyphRun glyphRun, out double width)
{
throw new NotImplementedException();
width = default;
return new NullGlyphRun();
}
}
}

Loading…
Cancel
Save