Skip to content

Commit

Permalink
Merge pull request #275 from VitalyKnyazev/master
Browse files Browse the repository at this point in the history
Fixed "Could not AOT the assembly" issue for Xamarin
  • Loading branch information
migueldeicaza authored Apr 4, 2017
2 parents 6125b25 + b1709d9 commit 8be6e81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion binding/Binding/SKStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ internal SKMemoryStream (IntPtr data, IntPtr length, bool copyData = false)
}

public SKMemoryStream (SKData data)
: this(SkiaApi.sk_memorystream_new_with_skdata (data), true)
: this(SkiaApi.sk_memorystream_new_with_skdata (data.Handle), true)
{
if (Handle == IntPtr.Zero) {
throw new InvalidOperationException ("Unable to create a new SKMemoryStream instance.");
Expand Down
2 changes: 1 addition & 1 deletion binding/Binding/SkiaApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ internal static class SkiaApi
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static sk_stream_memorystream_t sk_memorystream_new_with_data(byte[] data, IntPtr length, bool copyData);
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static sk_stream_memorystream_t sk_memorystream_new_with_skdata(SKData data);
public extern static sk_stream_memorystream_t sk_memorystream_new_with_skdata(IntPtr data);
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
public extern static void sk_memorystream_set_memory(sk_stream_memorystream_t s, IntPtr data, IntPtr length, bool copyData);
[DllImport(SKIA, CallingConvention = CallingConvention.Cdecl)]
Expand Down

0 comments on commit 8be6e81

Please sign in to comment.