Moved CreateGraphcsDevice and InvokePaint implementations to RenderWindowBase

This commit is contained in:
Yoshi Askharoun
2021-10-06 21:53:46 -05:00
parent b2274ea127
commit 9f735c61ac
4 changed files with 45 additions and 40 deletions
@@ -206,6 +206,9 @@ namespace Microsoft.Iris.Session
private PriorityQueue.HookProc GetQueueDrainHook(DispatchPriority priority) => _masterQueue.GetDrainHook((int)priority);
/// <summary>
/// Creates a <see cref="MessageLoop"/> and starts handling items in <paramref name="queue"/>.
/// </summary>
private void MainLoop(Queue queue, LoopCondition condition)
{
using (new UIDispatcher.MessageLoop(this, condition))
+1 -6
View File
@@ -51,12 +51,7 @@ namespace Microsoft.Iris.Session
{
}
public UISession(
SKSurface skSurface,
RenderWindowBase renderWindow,
EventHandler rendererConnectedCallback,
TimeoutHandler handlerTimeout,
uint timeoutSecValue)
public UISession(SKSurface skSurface, RenderWindowBase renderWindow, EventHandler rendererConnectedCallback, TimeoutHandler handlerTimeout, uint timeoutSecValue)
{
_syncWindowHandler = new SimpleCallback(SyncWindowHandler);
_queueSyncLayoutComplete = new SimpleQueue();