Skip to content

fix(gsplat): gate ImageBitmap release on opt-in flag, make it one-shot#8760

Merged
mvaligursky merged 1 commit into
mainfrom
mv-gsplat-release-flag-fixup
May 21, 2026
Merged

fix(gsplat): gate ImageBitmap release on opt-in flag, make it one-shot#8760
mvaligursky merged 1 commit into
mainfrom
mv-gsplat-release-flag-fixup

Conversation

@mvaligursky
Copy link
Copy Markdown
Contributor

@mvaligursky mvaligursky commented May 21, 2026

Follow-up to #8758 addressing two review comments.

Changes:

  • Texture.destroy() no longer closes ImageBitmaps unconditionally; only when the owner has opted in via setReleaseSourceAfterUpload(). Avoids invalidating bitmaps shared across textures or with caller code.
  • releaseImageSources() now clears the releaseSourceAfterUpload flag after running, matching the documented "release after the next upload" semantics. Callers must re-arm by calling setReleaseSourceAfterUpload() again if they assign a new source they want released.

Address review feedback:
- Texture.destroy() no longer closes ImageBitmaps unconditionally; only when
  the owner has opted in via setReleaseSourceAfterUpload. Avoids invalidating
  bitmaps shared across textures or with caller code.
- releaseImageSources() now clears the flag, matching the documented "release
  after the next upload" semantics. Callers must re-arm if they assign a new
  source they want released.
@mvaligursky mvaligursky self-assigned this May 21, 2026
@mvaligursky mvaligursky added the area: graphics Graphics related issue label May 21, 2026
@mvaligursky mvaligursky merged commit d80e636 into main May 21, 2026
13 of 14 checks passed
@mvaligursky mvaligursky deleted the mv-gsplat-release-flag-fixup branch May 21, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: graphics Graphics related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant