Allow VR RAF loop to handle changes in the layer, support pending renderstates

This commit is contained in:
Manish Goregaokar 2019-01-15 00:22:20 -08:00
parent 401b470e90
commit e20909cf43
4 changed files with 170 additions and 44 deletions

View file

@ -26,6 +26,7 @@ interface XRSession : EventTarget {
// FrozenArray<XRInputSource> getInputSources();
Promise<void> updateRenderState(optional XRRenderStateInit state);
long requestAnimationFrame(XRFrameRequestCallback callback);
void cancelAnimationFrame(long handle);