Skip to content

Test makes assumptions about expiry of current texture #4440

@sagudev

Description

@sagudev

Here


we do getCurrentTexture in:

JS
rAF
rAF
rAF
rAF
rAF

Per spec it's clear that each rAF should have different texture then previous, but same does not hold true for first pair (JS rAF case), although test expects it to.

Let's say the next task after JS code, that created texture (getCurrentTexture) is HTML Update The Rendering. We will also assume we did not implement any expiry task (we only expire on update the rendering).
In update the rendering:

  • There is microtask checkpoint in step 11, but that does not bother us (texture is still valid)
  • rAF is get run in step 14 (texture is still valid)
  • step 22 (For each doc of docs, update the rendering or user interface of doc) we run WebGPU Update The Rendering which in turn runs expire texture.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions