9 changed files with 12 additions and 78 deletions
@ -1,27 +0,0 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
|
|||
using Android.App; |
|||
using Android.Content; |
|||
using Android.OS; |
|||
using Android.Runtime; |
|||
using Android.Views; |
|||
using Android.Widget; |
|||
using Avalonia.Controls.Platform.Surfaces; |
|||
using Avalonia.Platform; |
|||
|
|||
namespace Avalonia.Skia |
|||
{ |
|||
partial class PlatformRenderInterface |
|||
{ |
|||
public IRenderTarget CreateRenderTarget(IEnumerable<object> surfaces) |
|||
{ |
|||
var fb = surfaces?.OfType<IFramebufferPlatformSurface>().FirstOrDefault(); |
|||
if (fb == null) |
|||
throw new ArgumentException("Avalonia.Skia.Android is only capable of drawing on framebuffer"); |
|||
return new FramebufferRenderTarget(fb); |
|||
} |
|||
} |
|||
} |
|||
@ -1,21 +0,0 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Avalonia.Controls.Platform.Surfaces; |
|||
using Avalonia.Platform; |
|||
|
|||
namespace Avalonia.Skia |
|||
{ |
|||
partial class PlatformRenderInterface |
|||
{ |
|||
public IRenderTarget CreateRenderTarget(IEnumerable<object> surfaces) |
|||
{ |
|||
var fb = surfaces?.OfType<IFramebufferPlatformSurface>().FirstOrDefault(); |
|||
if (fb == null) |
|||
throw new Exception("Avalonia.Skia.Deskop currently only supports framebuffer render target"); |
|||
return new FramebufferRenderTarget(fb); |
|||
} |
|||
} |
|||
} |
|||
@ -1,22 +0,0 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using Avalonia.Controls.Platform.Surfaces; |
|||
using Avalonia.Platform; |
|||
using Foundation; |
|||
using UIKit; |
|||
|
|||
namespace Avalonia.Skia |
|||
{ |
|||
partial class PlatformRenderInterface |
|||
{ |
|||
public IRenderTarget CreateRenderTarget(IEnumerable<object> surfaces) |
|||
{ |
|||
var fb = surfaces?.OfType<IFramebufferPlatformSurface>().FirstOrDefault(); |
|||
if (fb == null) |
|||
throw new Exception("Avalonia.Skia.Deskop currently only supports framebuffer render target"); |
|||
return new FramebufferRenderTarget(fb); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue