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

Proper SkijaGC disposal and initialization of device #155

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

HeikoKlare
Copy link

SkijaGC does currently not initialize it's device, i.e., a call to SkijaGC#getDevice() always yields null. In addition, disposal handling of SkijaGC is broken as it always disposes the underlying native GC even if that is still supposed to be used and the the surface of the SkijaGC is already disposed at commit instead of upon disposal. These issues are addressed by this change.

Copy link

github-actions bot commented Mar 12, 2025

Test Results

   338 files  ±0     338 suites  ±0   2m 35s ⏱️ -3s
 3 954 tests ±0   3 670 ✅ ±0  284 💤 ±0  0 ❌ ±0 
11 690 runs  ±0  10 805 ✅ ±0  885 💤 ±0  0 ❌ ±0 

Results for commit bd3e3a1. ± Comparison against base commit 00ae69b.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review March 12, 2025 13:31
@HeikoKlare HeikoKlare force-pushed the skijagc-device-and-dispose branch from 5550027 to bd3e3a1 Compare March 12, 2025 14:38
SkijaGC does currently not initialize it's device, i.e., a call to
SkijaGC#getDevice() always yields null. In addition, disposal handling
of SkijaGC is broken as it always disposes the underlying native GC even
if that is still supposed to be used and the the surface of the SkijaGC
is already disposed at commit instead of upon disposal. These issues are
addressed by this change.
@HeikoKlare HeikoKlare merged commit 2300249 into master Mar 12, 2025
5 checks passed
@HeikoKlare HeikoKlare deleted the skijagc-device-and-dispose branch March 12, 2025 14:49
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