Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed May 8, 2024
1 parent 9c5aab1 commit 284ea63
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ private interface IPrivateSessionFactory
/// Accessing Surface.Canvas is slow due to SkiaSharp interop.
/// Avoid using .Surface.Canvas and use .Canvas right away.
/// </remarks>
internal readonly struct PaintingSession: IDisposable
internal readonly struct PaintingSession : IDisposable
{
// This dance is done to make it so that only Visual can create a PaintingSession
public readonly struct SessionFactory : IPrivateSessionFactory
Expand All @@ -33,7 +33,7 @@ PaintingSession IPrivateSessionFactory.CreateInstance(in Visual visual, in SKSur

private PaintingSession(Visual visual, SKSurface surface, SKCanvas canvas, in DrawingFilters filters, in Matrix4x4 rootTransform)
{
_saveCount = visual.ShadowState is { } shadow ? canvas.SaveLayer(shadow.Paint) : canvas.Save();;
_saveCount = visual.ShadowState is { } shadow ? canvas.SaveLayer(shadow.Paint) : canvas.Save();
Surface = surface;
Canvas = canvas;
Filters = filters;
Expand Down

0 comments on commit 284ea63

Please sign in to comment.