Skip to content

Conversation

kenrussell
Copy link
Member

This extended attribute has been required by Web IDL since
whatwg/webidl#423 . In order for WebGL to be accessible by web workers
using OffscreenCanvas, the attribute being added to all WebGL
interfaces is:
[Exposed=(Window,Worker)]

Fixes #2571 .

@kenrussell
Copy link
Member Author

Please review. @kainino0x @jdashg @RafaelCintron @grorg

};

interface WebGLVertexArrayObject : WebGLObject {
[Exposed=(Window,Worker)] interface WebGLVertexArrayObject : WebGLObject {
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice the [Exposed... bit was always on the line before interface....

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. Done throughout.

This extended attribute has been required by Web IDL since
whatwg/webidl#423 . In order for WebGL to be accessible by web workers
using OffscreenCanvas, the attribute being added to all WebGL
interfaces is:
[Exposed=(Window,Worker)]

Fixes KhronosGroup#2571 .
@kenrussell kenrussell force-pushed the update-webgl-spec-for-workers branch from 8e68865 to 32841b5 Compare July 26, 2018 18:57
@kenrussell kenrussell merged commit 945c872 into KhronosGroup:master Jul 26, 2018
@kenrussell kenrussell deleted the update-webgl-spec-for-workers branch July 26, 2018 22:16
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.

2 participants