Skip to content

Commit 1e6531c

Browse files
committed
Update SKCanvasDrawOperation.cs
1 parent d2c4485 commit 1e6531c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Rive/SKCanvasDrawOperation.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using Avalonia;
3+
using Avalonia.Media;
34
using Avalonia.Platform;
45
using Avalonia.Rendering.SceneGraph;
56
using Avalonia.Skia;
@@ -56,9 +57,9 @@ public void Dispose()
5657
///
5758
/// </summary>
5859
/// <param name="context"></param>
59-
public void Render(IDrawingContextImpl context)
60+
public void Render(ImmediateDrawingContext context)
6061
{
61-
var leaseFeature = context.GetFeature<ISkiaSharpApiLeaseFeature>();
62+
var leaseFeature = context.TryGetFeature<ISkiaSharpApiLeaseFeature>();
6263
if (leaseFeature is null)
6364
{
6465
return;

0 commit comments

Comments
 (0)