Exposed debug-related options to public

This commit is contained in:
Yoshi Askharoun
2021-12-23 21:54:52 -06:00
parent 5652053493
commit caaf880022
6 changed files with 67 additions and 44 deletions
+10 -1
View File
@@ -36,6 +36,7 @@ namespace Microsoft.Iris
private static bool s_IsRTL = false;
private static Dictionary<int, IExternalAnimationInput> s_idToExternalAnimationInput;
private static Dictionary<int, IAnimationInputProvider> s_animationProviders;
private static Debug.DebugSettings s_debugSettings;
public static string Name
{
@@ -135,7 +136,15 @@ namespace Microsoft.Iris
get => DllResources.StaticDllResourcesOnly;
}
public static bool IsDebug { get; set; }
public static Debug.DebugSettings DebugSettings
{
get
{
if (s_debugSettings == null)
s_debugSettings = new Debug.DebugSettings();
return s_debugSettings;
}
}
public static void Initialize(SkiaSharp.SKSurface skSurface, RenderWindowBase renderWindow)
{