Skip to content

Commit

Permalink
Better APIs are needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Feb 9, 2024
1 parent 72b7d6c commit 724c65c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 26 deletions.
32 changes: 6 additions & 26 deletions binding/SkiaSharp.Skottie/SkottieApi.generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -516,41 +516,21 @@ namespace SkiaSharp.Skottie {

// skottie_animation_builder_stats_t
[StructLayout (LayoutKind.Sequential)]
public unsafe partial struct AnimationBuilderStats : IEquatable<AnimationBuilderStats> {
public readonly unsafe partial struct AnimationBuilderStats : IEquatable<AnimationBuilderStats> {
// public float fTotalLoadTimeMS
private Single fTotalLoadTimeMS;
public Single TotalLoadTimeMS {
readonly get => fTotalLoadTimeMS;
set => fTotalLoadTimeMS = value;
}
private readonly Single fTotalLoadTimeMS;

// public float fJsonParseTimeMS
private Single fJsonParseTimeMS;
public Single JsonParseTimeMS {
readonly get => fJsonParseTimeMS;
set => fJsonParseTimeMS = value;
}
private readonly Single fJsonParseTimeMS;

// public float fSceneParseTimeMS
private Single fSceneParseTimeMS;
public Single SceneParseTimeMS {
readonly get => fSceneParseTimeMS;
set => fSceneParseTimeMS = value;
}
private readonly Single fSceneParseTimeMS;

// public size_t fJsonSize
private /* size_t */ IntPtr fJsonSize;
public /* size_t */ IntPtr JsonSize {
readonly get => fJsonSize;
set => fJsonSize = value;
}
private readonly /* size_t */ IntPtr fJsonSize;

// public size_t fAnimatorCount
private /* size_t */ IntPtr fAnimatorCount;
public /* size_t */ IntPtr AnimatorCount {
readonly get => fAnimatorCount;
set => fAnimatorCount = value;
}
private readonly /* size_t */ IntPtr fAnimatorCount;

public readonly bool Equals (AnimationBuilderStats obj) =>
fTotalLoadTimeMS == obj.fTotalLoadTimeMS && fJsonParseTimeMS == obj.fJsonParseTimeMS && fSceneParseTimeMS == obj.fSceneParseTimeMS && fJsonSize == obj.fJsonSize && fAnimatorCount == obj.fAnimatorCount;
Expand Down
4 changes: 4 additions & 0 deletions binding/libSkiaSharp.Skottie.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
},
"mappings": {
"types": {
"skottie_animation_builder_stats_t": {
"readonly": true,
"properties": false
},
"skottie_animation_renderflags_t": {
"cs": "AnimationRenderFlags",
"flags": true
Expand Down

0 comments on commit 724c65c

Please sign in to comment.