Skip to content

Fix the SKImage.FromPicture implementation #3231

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

Merged
merged 3 commits into from
Apr 10, 2025
Merged

Fix the SKImage.FromPicture implementation #3231

merged 3 commits into from
Apr 10, 2025

Conversation

mattleibow
Copy link
Contributor

@mattleibow mattleibow commented Apr 10, 2025

Description of Change

This PR bumps the externals/skia as that has a fix for passing null surface props: mono/skia#156

However, it then also fixes the case where creating images from pictures requires a color space. If there is no color space, then null is returned. The docs say null color space is fine, but the code says otherwise. I asked the team to clarify: https://groups.google.com/g/skia-discuss/c/vbFCoMQXF3c

Bugs Fixed

API Changes

None.

Behavioral Changes

None.

Required skia PR

None.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Merged related skia PRs
  • Changes adhere to coding standard
  • Updated documentation

@mattleibow mattleibow changed the title Update the externals to fix C++ API Fix the SKImage.FromPicture implementation Apr 10, 2025
@mattleibow mattleibow merged commit 165d8b1 into main Apr 10, 2025
1 of 2 checks passed
@mattleibow mattleibow deleted the dev/fix-3157 branch April 22, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUG] SKImage.FromPicture throws System.AccessViolationException in V3, it works in V2
1 participant