Skip to content

Specify that frame callbacks are not called without a base layer#512

Merged
toji merged 2 commits into
masterfrom
raf-layer-check
Feb 12, 2019
Merged

Specify that frame callbacks are not called without a base layer#512
toji merged 2 commits into
masterfrom
raf-layer-check

Conversation

@toji

@toji toji commented Feb 6, 2019

Copy link
Copy Markdown
Member

Pretty self-explanatory. We shouldn't execute callbacks if there's no render target, especially since that facilitates tracking the user movements without an associated visual changes.

@toji
toji requested a review from NellWaliczek February 6, 2019 21:55
Comment thread index.bs

1. Let |callbacks| be a list of the entries in |session|'s [=list of animation frame callback=], in the order in which they were added to the list.
1. If |session|'s [=list of pending render states=] is not empty, [=apply pending render states=].
1. If |session|'s {{XRSession/renderState}}'s {{XRRenderState/baseLayer}} is <code>null</code>, abort these steps.

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.

If a session is an inline session, should we also abort if there's no output context?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good call! Fixed.

@toji
toji merged commit 5eb00b0 into master Feb 12, 2019
@toji
toji deleted the raf-layer-check branch February 12, 2019 00:24
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