Browse Source
* Enable nullability in RenderTests * Enable nullability in LeakTests * Enable nullability in Skia.UnitTests * Enable nullability in Generators.Tests * Enable nullability in DesignerSupport.Tests * Enable nullability in Build.Tasks.UnitTestspull/20378/head
committed by
GitHub
24 changed files with 66 additions and 50 deletions
@ -1,14 +1,12 @@ |
|||
using Avalonia.Rendering; |
|||
using System.Threading.Tasks; |
|||
using System; |
|||
|
|||
namespace Avalonia.Skia.RenderTests |
|||
{ |
|||
public class ManualRenderTimer : IRenderTimer |
|||
{ |
|||
public event Action<TimeSpan> Tick; |
|||
public event Action<TimeSpan>? Tick; |
|||
public bool RunsInBackground => false; |
|||
public void TriggerTick() => Tick?.Invoke(TimeSpan.Zero); |
|||
public Task TriggerBackgroundTick() => Task.Run(TriggerTick); |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue