This commit is contained in:
Peter Golde 2016-03-14 13:37:42 -07:00
Родитель 6ab85368ed 8d15c74c88
Коммит f4306bd147
5 изменённых файлов: 26 добавлений и 5 удалений

4
.gitmodules поставляемый
Просмотреть файл

@ -1,6 +1,6 @@
[submodule "skia"]
path = skia
url = git@github.com:mono/skia.git
url=git@github.com:petergolde/skia.git
[submodule "depot_tools"]
path = depot_tools
url = https://chromium.googlesource.com/chromium/tools/depot_tools.git
url = https://chromium.googlesource.com/chromium/tools/depot_tools.git

Просмотреть файл

@ -133,6 +133,14 @@ namespace SkiaSharp
CounterClockwise
}
public enum SKPathFillType
{
Winding,
EvenOdd,
InverseWinding,
InverseEvenOdd
}
public enum SKColorType {
Unknown,
Rgba_8888,

Просмотреть файл

@ -31,7 +31,16 @@ namespace SkiaSharp
base.Dispose (disposing);
}
public SKPathFillType FillType {
get {
return SkiaApi.sk_path_get_filltype (Handle);
}
set {
SkiaApi.sk_path_set_filltype (Handle, value);
}
}
public void MoveTo (float x, float y)
{
SkiaApi.sk_path_move_to (Handle, x, y);

Просмотреть файл

@ -288,9 +288,13 @@ namespace SkiaSharp
public extern static void sk_path_add_oval(sk_path_t t, ref SKRect rect, SKPathDirection direction);
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static bool sk_path_get_bounds(sk_path_t t, out SKRect rect);
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static SKPathFillType sk_path_get_filltype (sk_path_t t);
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static void sk_path_set_filltype (sk_path_t t, SKPathFillType filltype);
// SkMaskFilter
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
[DllImport (SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static void sk_maskfilter_unref(sk_maskfilter_t t);
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static sk_maskfilter_t sk_maskfilter_new_blur(SKBlurStyle style, float sigma);

2
skia

@ -1 +1 @@
Subproject commit 135c8ca428342a2abfcd43f2d300f1f2e9ab03f4
Subproject commit 45bdc31f6d735d23779b131c3e373047f2bbc8ac