Skip to content
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 threading boundaries on SkImage #2761

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant