Browse Source

Use DrawRoundRect on Skia now that SkiaSharp provides it.

pull/530/head
Jason Jarvis 10 years ago
parent
commit
ef28479b93
  1. 10
      src/Skia/Perspex.Skia/DrawingContextImpl.cs
  2. 1
      src/Skia/Perspex.Skia/readme.md

10
src/Skia/Perspex.Skia/DrawingContextImpl.cs

@ -229,10 +229,7 @@ namespace Perspex.Skia
} }
else else
{ {
// TODO: DrawRRect (ore DrawRoundedRect) is not accesible in SkiaSharp yet. We should add that Canvas.DrawRoundRect(rc, cornerRadius, cornerRadius, paint.Paint);
// to SkiaSharp and initiate a PR....
Canvas.DrawRect(rc, paint.Paint);
//Canvas.DrawRoundedRect(rc, cornerRadius, cornerRadius, paint);
} }
} }
} }
@ -248,10 +245,7 @@ namespace Perspex.Skia
} }
else else
{ {
// TODO: this does not exist in SkiaSharp yet Canvas.DrawRoundRect(rc, cornerRadius, cornerRadius, paint.Paint);
//throw new NotImplementedException();
//Canvas.DrawRoundedRect(rc, cornerRadius, cornerRadius, paint);
Canvas.DrawRect(rc, paint.Paint);
} }
} }
} }

1
src/Skia/Perspex.Skia/readme.md

@ -5,7 +5,6 @@ BitmapImpl
- Save - Save
DrawingContextImpl DrawingContextImpl
- DrawRoundRect is not properly implemented due to lack of support in SkiaSharp
- Alpha support missing as SkiaSharp does not expose this - Alpha support missing as SkiaSharp does not expose this
- Gradient Shader caching? - Gradient Shader caching?
- TileBrushes - TileBrushes

Loading…
Cancel
Save