-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add png chunk reader, expose more of codec and bitmap #88
base: xamarin-mobile-bindings
Are you sure you want to change the base?
add png chunk reader, expose more of codec and bitmap #88
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice PR. All this looks good. I do have some suggestions and also a couple of nitpicks.
Mainly some properties are just named differently or return a higher level object in C#, so either we can add a new property to do this Size => Info.Size
or we can use the existing property.
Then the last nit is the underscores in the class names. My generator is not very smart. It often gets things wrong.
alright :)
haha :) |
38534bb
to
56e7c42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the find/replace may have been too powerful, so the google code needs to be reverted a bit.
Also, we need a enum mapping like this to protect against the Google Unnecessary Reorder ™️ that will take place when we update: https://github.com/mono/skia/blob/xamarin-mobile-bindings/src/c/sk_enums.cpp#L244-L246
fixed for now :) |
The only thing left is the enum added to sk_enums.cpp |
which one? |
like this? // sk_codec_selection_policy_t
static_assert ((int)SkCodec::SelectionPolicy::kPreferStillImage == (int)PREFER_STILL_IMAGE_SK_CODEC_SELECTION_POLICY, ASSERT_MSG(SkCodec::SelectionPolicy, sk_codec_selection_policy_t));
static_assert ((int)SkCodec::SelectionPolicy::kPreferAnimation == (int)PREFER_ANIMATION_SK_CODEC_SELECTION_POLICY, ASSERT_MSG(SkCodec::SelectionPolicy, sk_codec_selection_policy_t)); |
No description provided.