Skip to content

Conversation

@kainino0x
Copy link
Contributor

Aside from defining some details of OffscreenCanvas behavior, this is intended to have no normative behavior change.

  • Standalone OffscreenCanvases do not have automatic expiry.
  • transferControlToOffscreen OffscreenCanvases automatically expire when their rendering is updated, just like regular canvases except this can happen in the worker event loop.

Bonus editorializing, as always:

  • Removes the concept of "commit" because this can be more simply described as what happens when you read the "bitmap" of a canvas (which we already had some text to define). Now the 2 places that expire canvas textures just do so directly.
  • Moves HTML spec "hooks" into their own section and describe what they are.

Fixes #3295 (again)

Aside from defining some details of OffscreenCanvas behavior, this is
intended to have no normative behavior change.

- Standalone OffscreenCanvases do not have automatic expiry.
- transferControlToOffscreen OffscreenCanvases automatically expire when
  their rendering is updated, just like regular canvases except this can
  happen in the worker event loop.

Bonus editorializing, as always:

- Removes the concept of "commit" because this can be more simply
  described as what happens when you read the "bitmap" of a canvas (which
  we already had some text to define). Now the 2 places that expire canvas
  textures just do so directly.
- Moves HTML spec "hooks" into their own section and describe what they
  are.

Fixes 3295 (again)
@kainino0x kainino0x added the copyediting Pure editorial stuff (copyediting, *.bs file syntax, etc.) label Mar 9, 2023
@kainino0x kainino0x added this to the V1.0 milestone Mar 9, 2023
@kainino0x kainino0x requested a review from toji March 9, 2023 18:24
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2023

Previews, as seen when this build job started (73882ac):
WebGPU webgpu.idl | Explainer | Correspondence Reference
WGSL grammar.js | wgsl.lalr.txt

Copy link
Member

@toji toji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copyediting Pure editorial stuff (copyediting, *.bs file syntax, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Canvas texture expiry timing is unpredictable

2 participants