Closed Bug 1581855 Opened 5 months ago Closed 5 months ago

Present VR output to VR Host

Categories

(Core :: WebVR, task, P2)

70 Branch
Desktop
Unspecified
task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: thomasmo, Assigned: thomasmo)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1570128 +++

This bug is Part 2 of Presenting VR output, which involves more changes in the graphics stack

Blocks: 1581881

This change is a continuation of Part 1 (Bug 1570128), where the 2D content rendered by Firefox for Firefox Reality on Desktop is marshalled through VRHost so that it can be presented in a VR environment.
A new class, FxrOutputHandler, is created to manage creating a sharable texture, sharing it through VRShMem, and updating it when content updates. This class updates content with both WebRender and conventional rendering output.
This initial iteration of FxrOutputHandler does not have synchronization between reading and writing this shared texture across processes. A subsequent fix (Bug 1581881) is pending, which will reuse WebVR code to manage writing to and reading from a pool of textures.
This also presents issues with rendering protected media, so an additional class, FxrWindowManager, is created to manage all windows created for Firefox Reality on Desktop so that it can inform whether or not protected media can be presented.
The automated manual tests in vrhosttest.cpp now show the real shared texture handle rather than a fake value, which shows that marshaling succeeded.

Pushed by tmoore@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/70f93c9956fc
Part 2 - Present VR output to VR Host r=kip,jrmuizel,sotaro,bryce
Pushed by tmoore@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/018d0ca2f7ae
Part 2 - Present VR output to VR Host r=kip,jrmuizel,sotaro,bryce
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Regressions: 1586043
Flags: needinfo?(thomasmo)
Regressions: 1594794
You need to log in before you can comment on or make changes to this bug.