Skip to content

Merge 'end the session' with 'shut down the session', clarify, add onend event#710

Merged
toji merged 2 commits intoimmersive-web:masterfrom
Manishearth:end-session
Jun 17, 2019
Merged

Merge 'end the session' with 'shut down the session', clarify, add onend event#710
toji merged 2 commits intoimmersive-web:masterfrom
Manishearth:end-session

Conversation

@Manishearth
Copy link
Copy Markdown
Contributor

Potential fix for #467

Not quite sure of this, also not sure of what precisely we should list in the platform specific steps.

@Manishearth
Copy link
Copy Markdown
Contributor Author

r? @toji

Comment thread index.bs
1. Remove |session| from the [=list of inline sessions=].
1. [=Reject=] any outstanding promises returned by |session| with an {{InvalidStateError}}.
1. If no other features of the user agent are actively using them, perform the necessary platform-specific steps to shut down the device's tracking and rendering capabilities.
1. [=Reject=] any outstanding promises returned by |session| with an {{InvalidStateError}}, except for any promises returned by {{XRSession/end()}}.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ooh, hey! Good catch. 😅

Comment thread index.bs Outdated
1. [=Reject=] any outstanding promises returned by |session| with an {{InvalidStateError}}, except for any promises returned by {{XRSession/end()}}.
1. If no other features of the user agent are actively using them, perform the necessary platform-specific steps to shut down the device's tracking and rendering capabilities. This MUST include:
- Releasing [=exclusive access=] to the [=/XR device=].
- Deallocating any framebuffers attached by the |session| to the [=/XR device=].
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"Attached" doesn't seem like the right word here? Also it may not always be framebuffers specifically, so maybe something more like this (keeping in line with your recent swap chain PR)?

Deallocating any graphics resources acquired by the |session| for presentation to the [=/XR device=].

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That makes sense. Getting on a flight soon, will push this fix later.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Safe travels!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done!

@cwilso cwilso added this to the July 2019 milestone Jun 17, 2019
@toji toji merged commit c0ee007 into immersive-web:master Jun 17, 2019
@toji
Copy link
Copy Markdown
Member

toji commented Jun 17, 2019

👏

@toji toji modified the milestones: July 2019, June 2019 Jun 17, 2019
@Manishearth Manishearth deleted the end-session branch August 13, 2019 05:13
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.

3 participants