Skip to content

Conversation

@wcandillon
Copy link
Contributor

@wcandillon wcandillon commented Nov 21, 2024

Add thread boundaries on images that could be used in a different thread than the one they were created on. The solution is to use the graphic context available in the thread instead of using the "saved" within the image.
Skia now has a SK_IMAGE_READ_PIXELS_DISABLE_LEGACY_API that helps with catching these (however APIs like makeImageSnapshot(GrDirectContext* gr = nullptr) cannot be caught by the flag).

@wcandillon wcandillon merged commit f4db5f5 into main Nov 22, 2024
8 checks passed
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.5.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

stevengoldberg pushed a commit to stevengoldberg/react-native-skia that referenced this pull request May 18, 2025
…hopify#2761)

Add thread boundaries on images that could be used in a different thread than the one they were created on. The solution is to use the graphic context available in the thread instead of using the "saved" within the image.
Skia now has a `SK_IMAGE_READ_PIXELS_DISABLE_LEGACY_API` that helps with catching these (however APIs like `makeImageSnapshot(GrDirectContext* gr = nullptr)` are not caught by the flag).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant