mirror of
https://github.com/ZuneDev/Xune.git
synced 2026-07-27 13:13:10 -07:00
Abstracted RenderWindow for platform-specific implementations
This commit is contained in:
@@ -46,13 +46,14 @@ namespace Microsoft.Iris.Session
|
||||
private static readonly DeferredHandler s_deferredPlaySound = new DeferredHandler(DeferredPlaySound);
|
||||
private static readonly DeferredHandler s_deferredPlaySystemSound = new DeferredHandler(DeferredPlaySystemSound);
|
||||
|
||||
public UISession(SKSurface skSurface)
|
||||
: this(skSurface, null, null, 0U)
|
||||
public UISession(SKSurface skSurface, RenderWindowBase renderWindow)
|
||||
: this(skSurface, renderWindow, null, null, 0U)
|
||||
{
|
||||
}
|
||||
|
||||
public UISession(
|
||||
SKSurface skSurface,
|
||||
RenderWindowBase renderWindow,
|
||||
EventHandler rendererConnectedCallback,
|
||||
TimeoutHandler handlerTimeout,
|
||||
uint timeoutSecValue)
|
||||
@@ -69,7 +70,7 @@ namespace Microsoft.Iris.Session
|
||||
int pdwDefaultLayout;
|
||||
Win32Api.IFWIN32(Win32Api.GetProcessDefaultLayout(out pdwDefaultLayout));
|
||||
_rtl = pdwDefaultLayout == 1;
|
||||
_engine = RenderApi.CreateEngine(IrisEngineInfo.CreateLocal(skSurface), Dispatcher);
|
||||
_engine = RenderApi.CreateEngine(IrisEngineInfo.CreateLocal(skSurface, renderWindow), Dispatcher);
|
||||
_session = _engine.Session;
|
||||
TextImageCache.Initialize(this);
|
||||
ScavengeImageCache.Initialize(this);
|
||||
|
||||
Reference in New Issue
Block a user