KEMBAR78
Remove context Attribute from XRWebGLLayer by bricetebbs · Pull Request #699 · immersive-web/webxr · GitHub
Skip to content

Conversation

@bricetebbs
Copy link
Contributor

I have no idea what I'm doing so I'll explain what I did. I made what seemed like the obvious change in index.bs and tried to find any other references in the file. I searched through the explainer to see if it needed changes and it didn't seem to. I also checked a few of the code samples and they also don't seem to us this attribute.

I have no idea what I'm doing so I'll explain what I did. I made what seemed like the obvious change in index.bs and tried to find any other references in the file.  I searched through the explainer to see if it needed changes and it didn't seem to. I also checked a few of the code samples and they also don't seem to us this attribute.
Copy link
Member

@NellWaliczek NellWaliczek left a comment

Choose a reason for hiding this comment

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

Yay for new helpers! Thanks for putting this together, Brice! The changes in the index.bs look correct to me. There is one change that needs to be made in the idl section of the explainer.md. The following line needs to be removed:

readonly attribute XRWebGLRenderingContext context;

@bricetebbs
Copy link
Contributor Author

bricetebbs commented Jun 14, 2019 via email

@toji
Copy link
Member

toji commented Jun 14, 2019

Yes, thanks for the help, Brice!

There's a few references that you missed in the spec doc as well: Basically just do a search for {{XRWebGLLayer/context}} and you'll see where it's referenced in spec text or algorithms. In some places the text just may need to be removed, but in others (especially any time it's used in an algorithm or when describing the behavior of other objects) you'll want to replace it with a reference to an internal value.

This means simply that you'll want to add some text to the XRWebGLLayer section saying something like:

Each {{XRWebGLLayer}} has a <dfn for="XRWebGLLayer">context</dfn> object, initially <code>null</code>, which is an instance of either a {{WebGLRenderingContext}} or a {{WebGL2RenderingContext}}.

At which point you can do a straight replacement of {{XRWebGLLayer/context}} with [=XRWebGLLayer/context=] in most places and everything will just work out.

I highly recommend running make in your repo folder to trigger a build of the bikeshed file when you're done. That'll let you know if there's any warnings or errors. (It's expected to come back clean.)

Manishearth and others added 11 commits June 14, 2019 13:23
…mmersive-web#701)

Replace 'list of pending render states' with 'pending render state'
Fixes immersive-web#693. Also removed two lines of error checking that are now
redundant.
I have no idea what I'm doing so I'll explain what I did. I made what seemed like the obvious change in index.bs and tried to find any other references in the file.  I searched through the explainer to see if it needed changes and it didn't seem to. I also checked a few of the code samples and they also don't seem to us this attribute.
@bricetebbs
Copy link
Contributor Author

Closing this in favor of #707

@bricetebbs bricetebbs closed this Jun 15, 2019
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.

4 participants