feat(linux): add graphical platform services

This commit is contained in:
Erik 2026-07-27 11:54:59 +02:00
parent 1628d9f587
commit 66f114b258
28 changed files with 1328 additions and 155 deletions

View file

@ -25,9 +25,17 @@ internal sealed class FramePacingController : IDisposable
private bool _disposed;
public FramePacingController()
: this(PlatformFramePacingWaiterFactory.ForCurrentProcess())
{
}
internal FramePacingController(
IFramePacingWaiterFactory waiterFactory)
: this(
StopwatchFramePacingClock.Instance,
WindowsHighResolutionFramePacingWaiter.Create(),
(waiterFactory
?? throw new ArgumentNullException(nameof(waiterFactory)))
.Create(),
ownsWaiter: true)
{
}