Skip to content

Commit

Permalink
chore: post rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Nov 19, 2024
1 parent df9c6c4 commit 8df4a71
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public partial class CompositionSpriteShape : CompositionShape
/// a CompositionMaskBrush that (presumably) masks out certain areas. We compensate for this by using this
/// geometry as the mask.
/// </summary>
public CompositionGeometry? FillGeometry
internal CompositionGeometry? FillGeometry
{
get => _fillGeometry;
private get => _fillGeometry;
set => SetProperty(ref _fillGeometry, value);
}

Expand Down
6 changes: 3 additions & 3 deletions src/Uno.UI/UI/Xaml/Media/PathGeometry.skia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ partial class PathGeometry

internal override SKPath GetFilledSKPath() => GetSKPath(true);

internal SKPath GetSKPath(bool skipUnfilled)
private SKPath GetSKPath(bool skipUnfilled)
{
var path = new SKPath();

foreach (var figure in Figures)
foreach (PathFigure figure in Figures)
{
if (skipUnfilled && !figure.IsFilled)
{
Expand All @@ -22,7 +22,7 @@ internal SKPath GetSKPath(bool skipUnfilled)

path.MoveTo((float)figure.StartPoint.X, (float)figure.StartPoint.Y);

foreach (var segment in figure.Segments)
foreach (PathSegment segment in figure.Segments)
{
if (segment is LineSegment lineSegment)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Uno.UI/UI/Xaml/Shapes/Shape.skia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ partial class Shape
private readonly CompositionSpriteShape _shape;
private readonly CompositionPathGeometry _geometry;

protected CompositionSpriteShape SpriteShape => _shape;
private protected CompositionSpriteShape SpriteShape => _shape;

public Shape()
{
Expand All @@ -32,7 +32,7 @@ private Rect GetPathBoundingBox(SkiaGeometrySource2D path)

private protected override ContainerVisual CreateElementVisual() => Compositor.GetSharedCompositor().CreateShapeVisual();

private protected void Render(Microsoft.UI.Composition.SkiaGeometrySource2D? path, double? scaleX = null, double? scaleY = null, double? renderOriginX = null, double? renderOriginY = null)
private protected virtual void Render(Microsoft.UI.Composition.SkiaGeometrySource2D? path, double? scaleX = null, double? scaleY = null, double? renderOriginX = null, double? renderOriginY = null)
{
if (path is null)
{
Expand Down

0 comments on commit 8df4a71

Please sign in to comment.