Refactor gfxVRPuppet.cpp to use gfxVRExternal interface
Categories
(Core :: WebVR, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: kip, Assigned: kip)
References
(Blocks 5 open bugs)
Details
Attachments
(1 file)
As part of an iterative implementation to move the VR api interfaces to their own process, we will first update the backend's in gfx/vr/... to communicate entirely with the rest of Gecko through the VRExternalShmem struct, defined in gfx/vr/external_api/moz_external_vr.h This implementation will follow the conversion of gfxVROpenVR.cpp in Bug 1466699, which will lay much of the foundation needed. The control of the puppet devices themselves will continue to use the existing IPC/messages on the Compositor thread until later refactoring to use a puppet testing specific interface from the VR process.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
The dom/vr/tests/mochitest tests have been disabled in Bug 1473397 due to the test code replaced by VRServicePuppet in this patch needing to be updated to support asynchronous display and controller instantiation. The dom/vr/tests/cmohitest tests will be re-enabled with this patch.
It might also be good to also move the runtime call from SpecialPowers.pushPrefEnv (in runVRTest.js) to config declarations in mochitest.ini when these are re-enabled.
Assignee | ||
Comment 3•5 years ago
|
||
gfxVRPuppet will be replaced with a fully asynchronous puppet automation that runs in the VR process.
Assignee | ||
Comment 4•5 years ago
|
||
Early try run to find build errors:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=2fd2e1dd05b83ab54a7dd1a20f247be2fca4f5c6
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
Assignee | ||
Comment 7•5 years ago
|
||
Assignee | ||
Comment 8•5 years ago
|
||
Fixed some static analysis warnings and errors found on try. Updated push:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b03a1ffc0f82de199a315358927a2d0bcfeb39e5
Assignee | ||
Comment 9•5 years ago
|
||
Fixed Linux compile errors, updated push:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3b7c2dbb7b7b3bd11330867d4594c585de564519
Assignee | ||
Comment 10•5 years ago
|
||
Fixed more static analysis warnings, addressed review feedback, fixed memory leak.
Updated push:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=e3ec7fdc5688ac41b7666ffbc9fbf3fd7353eee6
There is likely still compile errors on Android, will fix now.
Assignee | ||
Comment 11•5 years ago
|
||
I have completed making all the changes suggested in review feedback and static analysis.
Pushed to try again to weed out any platform-specific failures:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=58886fdef32b2b725856b293e0217dcd31d3a3b1
Assignee | ||
Comment 12•5 years ago
|
||
Updated try push, rebased and attempting to fix Android and Linux build errors:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=bda696bb9a4ad9df26daa6fbc054f25e7c52cd93
Assignee | ||
Comment 13•5 years ago
|
||
Try looks good, except for Win 7 WPT. Investigating...
Assignee | ||
Comment 14•5 years ago
|
||
It appears that Win 7 try is failing due to having the VR process enabled but not the GPU process. Updating patch to ensure that the logic is consistent everywhere, testing for both the GPU process and VR process enable prefs.
Assignee | ||
Comment 15•5 years ago
|
||
Updated try push, with Win 7 fixes:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=81b19b56d84d663e421206fdc74143e93aef7f14
Assignee | ||
Comment 16•5 years ago
|
||
Updated patch and try push, to correct shutdown crash introduced in last patch:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3cf63c6f121d2960d211737b7066799a25df7988
Assignee | ||
Comment 17•5 years ago
|
||
New patch and try push, to correct implicit VRServiceHost constructor warning:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=84ce3a07b02aac046ac77b3b593d6613f08b262e
Assignee | ||
Comment 18•5 years ago
|
||
VRServiceHost was shutting down too early, causing VRManager's DTOR to crash. Updated patch and try push:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=1b42b0fdfdb6dc10a5acac7ab8d8de4991536711
Assignee | ||
Comment 19•5 years ago
|
||
Rebase, backport pref changes, fix try build errors.
Try push for new patch:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=856594056f9038cb5decb625feceb978c07dcd9c
Assignee | ||
Comment 20•5 years ago
|
||
This build is looking good. I have also done some sanity checks on device locally with the OpenVR backend.
Assignee | ||
Comment 21•5 years ago
|
||
Changed unsigned long arguments to uint32_t based on review feedback from BZ, rebased. Try push:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=18e2524f288f7db63fdd76946b4219c49846681c
Comment 22•5 years ago
|
||
Pushed by kgilbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/133ac0d11428 Refactor / reimplement gfxVRPuppet and VRServiceTest to use gfxVRExternal r=daoshengmu,thomasmo,bzbarsky
Comment 23•5 years ago
|
||
bugherder |
Description
•