source/SkiaSharp.Views.Uno/SkiaSharp.Views.Uno.WinUI.Skia/SKSwapChainPanel.Skia.cs (42 lines of code) (raw):
using System;
using System.Threading;
using Uno.Foundation;
#if WINUI
using Microsoft.UI.Xaml;
#else
using Windows.UI.Xaml;
#endif
#if WINDOWS || WINUI
namespace SkiaSharp.Views.Windows
#else
namespace SkiaSharp.Views.UWP
#endif
{
public partial class SKSwapChainPanel
{
public SKSwapChainPanel()
{
if (RaiseOnUnsupported)
{
throw new NotSupportedException($"SKSwapChainPanel is not supported for Skia based platforms");
}
}
private SKSize GetCanvasSize()
{
if (RaiseOnUnsupported)
{
throw new NotSupportedException($"SKSwapChainPanel is not supported for Skia based platforms");
}
return new SKSize();
}
private GRContext GetGRContext()
{
if (RaiseOnUnsupported)
{
throw new NotSupportedException($"SKSwapChainPanel is not supported for Skia based platforms");
}
return null;
}
private void DoInvalidate() { }
}
}