Igalia / wolvic-chromium

The official GitHub mirror of the Chromium source
https://chromium.googlesource.com/chromium/src/
BSD 3-Clause "New" or "Revised" License
11 stars 6 forks source link

Set XR Space parameters #68

Closed mshin-wolvic closed 7 months ago

mshin-wolvic commented 7 months ago

Wonderland Engine used in SpraySpace VR requires the XRSpace parameters and updates XR frames if these parameters are valid. We couldn't get any XRframe since we delivered the null value for it.

This patch sets them when GetFrameData's callback is called.

And, |stage_parametersid| increments the count only when there is an actual change, so that Blink uses the cached values if there is no change.

Fixes https://github.com/Igalia/wolvic-chromium/issues/58

mshin-wolvic commented 7 months ago

Nice! Could you please first add some explanation of the change in the commit message before merging?

Updated. Thanks.