Abstracted RenderWindow for platform-specific implementations

This commit is contained in:
Yoshi Askharoun
2021-07-29 14:02:25 -05:00
parent 37d2410a51
commit 094a1d2efd
27 changed files with 1591 additions and 801 deletions
+2 -2
View File
@@ -137,7 +137,7 @@ namespace Microsoft.Iris
public static bool IsDebug { get; set; }
public static void Initialize(SkiaSharp.SKSurface skSurface)
public static void Initialize(SkiaSharp.SKSurface skSurface, RenderWindowBase renderWindow)
{
if (IsInitialized)
throw new InvalidOperationException("Application already initialized");
@@ -145,7 +145,7 @@ namespace Microsoft.Iris
Debug.Assert.IsNotNull(skSurface, nameof(skSurface));
VerifyTrustedEnvironment();
s_session = new UISession(skSurface);
s_session = new UISession(skSurface, renderWindow);
s_session.IsRtl = s_IsRTL;
s_session.InputManager.KeyCoalescePolicy = new KeyCoalesceFilter(QueryKeyCoalesce);
GraphicsDeviceType graphicsType = ChooseRenderingGraphicsDevice(s_renderType);