Jumar Macato
5 years ago
No known key found for this signature in database
GPG Key ID: B19884DAC3A5BF3F
1 changed files with
4 additions and
4 deletions
-
src/Skia/Avalonia.Skia/GeometryImpl.cs
|
|
|
@ -11,18 +11,18 @@ namespace Avalonia.Skia |
|
|
|
internal abstract class GeometryImpl : IGeometryImpl |
|
|
|
{ |
|
|
|
private PathCache _pathCache; |
|
|
|
private SKPathMeasure _pathMeasureCachex; |
|
|
|
private SKPathMeasure _pathMeasureCache; |
|
|
|
|
|
|
|
private SKPathMeasure CachedPathMeasure |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
if (_pathMeasureCachex is null) |
|
|
|
if (_pathMeasureCache is null) |
|
|
|
{ |
|
|
|
_pathMeasureCachex = new SKPathMeasure(EffectivePath); |
|
|
|
_pathMeasureCache = new SKPathMeasure(EffectivePath); |
|
|
|
} |
|
|
|
|
|
|
|
return _pathMeasureCachex; |
|
|
|
return _pathMeasureCache; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|