feat(linux): add graphical platform services
This commit is contained in:
parent
1628d9f587
commit
66f114b258
28 changed files with 1328 additions and 155 deletions
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue