Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Skia context usage a critical section on iOS. (#896)
## Proposed Changes Since there are no reliable repros, it's a speculative fix for [the crash](JetBrains/compose-multiplatform#3862) on iOS. It's based on an assumption that the case for the crash is caused by render command encoding in a separate thread being performed after (or in parallel) with the context disposal on the main thread which leads to incorrect state inside Skia. ## Testing Test: see if issues persists. ## Issues Fixed Fixes: JetBrains/compose-multiplatform#3862 ## Note Skia is supposed to handle internal resources based on reference counting and assumed scenario shouldn't lead to the crash, since the context should be indirectly retained by the moment encoding starts. Revert if issue persists because that logic would be redundant.
- Loading branch information