Nathan Froyd
cfb8fb313f
Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg
...
This patch was generated by running:
```
perl -p -i \
-e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF8toUTF16\((.*)\);/\1CopyUTF8toUTF16(\3, \2);/;' \
-e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF16toUTF8\((.*)\);/\1CopyUTF16toUTF8(\3, \2);/;' \
$FILE
```
against every .cpp and .h in mozilla-central, and then fixing up the
inevitable errors that happen as a result of matching C++ expressions with
regexes. The errors fell into three categories:
1. Calling the convert functions with `std::string::c_str()`; these were
changed to simply pass the string instead, relying on implicit conversion
to `mozilla::Span`.
2. Calling the convert functions with raw pointers, which is not permitted
with the copy functions; these were changed to invoke `MakeStringSpan` first.
3. Other miscellaneous errors resulting from over-eager regexes and/or the
replacement not being type-aware. These changes were reverted.
Differential Revision: https://phabricator.services.mozilla.com/D88903
2020-09-02 09:54:37 +00:00
Simon Giesecke
1e6ec7ec86
Bug 1656117 - Reduce include dependencies on nsRefreshDriver.h. r=mstange
...
The abstract observer base classes are moved to a separate header file
nsRefreshObservers.h and the includes are adjusted accordingly.
Some method implementations are moved to the corresponding implementation files
to avoid the need to include the nsRefreshDriver.h file in the header.
Differential Revision: https://phabricator.services.mozilla.com/D85764
2020-08-04 21:17:50 +00:00
Imanol Fernandez
0c20e550e5
Bug 1655006 - Implement WebXR nativeFramebufferScaleFactor. r=jgilbert,kip,daoshengmu
...
Clamp the requested XRWebGLLayer framebuffer size to ensure it's not too small to see or larger than the max native resolution.
Differential Revision: https://phabricator.services.mozilla.com/D84799
2020-07-29 10:00:53 +00:00
Daosheng Mu
6439492a5d
Bug 1654863 - Update PicoVR controller profile names. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D84743
2020-07-23 18:48:30 +00:00
Simon Giesecke
e443211b53
Bug 1653229 - Remove unnecessary includes for BindingUtils.h. r=jgilbert
...
Differential Revision: https://phabricator.services.mozilla.com/D83771
2020-07-22 15:12:10 +00:00
Imanol Fernandez
a0b122309a
Bug 1650714 - Part 2: Correct XRRigidTransform inverse math r=daoshengmu,kip,lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D82433
2020-07-10 22:01:11 +00:00
Daosheng Mu
088f996216
Bug 1650714 - Part 1: Correct Matrix Decompose and SetRotationFromQuaternion. r=kip,imanol,lsalzman
...
Differential Revision: https://phabricator.services.mozilla.com/D82391
2020-07-10 22:01:11 +00:00
Imanol Fernandez
f17da90522
Bug 1651087 - Check if the session is ended before processing XRSession::StartFrame() r=kip,daoshengmu
...
Differential Revision: https://phabricator.services.mozilla.com/D82556
2020-07-07 21:52:56 +00:00
Simon Giesecke
cd8b8939b9
Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Imanol Fernandez
c0d52e6891
Bug 1647436 - Fix leaked nsGlobalWindowInner instance in WebXR CC r=kip,daoshengmu
...
Differential Revision: https://phabricator.services.mozilla.com/D80527
2020-06-22 20:26:56 +00:00
Gijs Kruitbosch
222e2d1158
Bug 1644863 - fix trailing whitespace in cross-tree tests, r=emilio,marionette-reviewers,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D79202
2020-06-17 22:45:31 +00:00
Kearwood Gilbert
f1e15241c4
Bug 1555188 - Enable PuppetVRSession to work when VR process is enabled r=thomasmo
...
Differential Revision: https://phabricator.services.mozilla.com/D72059
2020-06-08 23:57:27 +00:00
Kearwood Gilbert
90a295c55d
Bug 1641615 - xr.requestSession now checks for transient user activation rather than just user input. r=daoshengmu,edgar,imanol
...
Differential Revision: https://phabricator.services.mozilla.com/D77558
2020-06-02 19:55:45 +00:00
Imanol Fernandez
af94e32736
Bug 1641593 - Apply sensor orientation in XRNativeOriginViewer reference space r=kip,daoshengmu
...
Differential Revision: https://phabricator.services.mozilla.com/D77283
2020-05-28 18:04:14 +00:00
Imanol Fernandez
7e6883c730
Bug 1641596 - Apply XRNativeOrigin transform to XRViewerPose base transform r=kip,daoshengmu
...
We are applying XRNativeOrigin to each view transform from the XRViewerPose but not to the base transform of the XRViewerPose object.
Differential Revision: https://phabricator.services.mozilla.com/D77284
2020-05-28 18:00:15 +00:00
Daosheng Mu
b3c826b17b
Bug 1636921 - Calling SetCapacity for a FallibleTArray in XRInputSourceArray. r=sg,kip
...
Differential Revision: https://phabricator.services.mozilla.com/D74722
2020-05-13 22:13:52 +00:00
Sylvestre Ledru
1929dd1ab3
Bug 1519636 - Reformat recent changes to the Google coding style r=andi
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D73347
2020-05-09 14:51:53 +00:00
Daosheng Mu
7cd1c17fba
Bug 1634491 - Return addref object from XRFrame::GetPose(). r=kip,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D73761
2020-05-06 14:45:52 +00:00
Simon Giesecke
e2216fb0bd
Bug 1626570 - Improve handling of copying arrays in dom/vr/. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D73667
2020-05-06 11:46:55 +00:00
Daosheng Mu
590cd39d32
Bug 1635363 - Invert orientation after matrix.decompose from XRRigidTransform. r=kip,imanol
...
Differential Revision: https://phabricator.services.mozilla.com/D73798
2020-05-05 23:46:19 +00:00
Imanol Fernandez
d5b80b872a
Bug 1633725 - Improve WebXR Garbage Collection. Respect XRRigidTransform.inverse and XRView.transform [SameObject] requirements. r=kip,daoshengmu,jgilbert
...
- Lazily create XRRigidTransform DOMPoints
- Reuse XRRigidTransform inverse (SameObject in the spec)
- Reuse XRView transform (SameObject in the spec)
- Reuse XRWebGLLayer viewport instances
- Pool XRViewerPose instances
- Pool XRFrame instances
Differential Revision: https://phabricator.services.mozilla.com/D73071
2020-05-01 01:42:39 +00:00
Sylvestre Ledru
34acbb653a
Bug 1619165 - Reformat recent changes to the Google coding style r=andi
...
First reformat with clang-format 10
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D68802
2020-04-25 09:40:08 +00:00
Simon Giesecke
2d8c4390b7
Bug 1628715 - Part 15: Replace MOZ_NONNULL_RETURN by returning NotNull<elem_type*>. r=xpcom-reviewers,necko-reviewers,dragana,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D71300
2020-04-24 13:35:27 +00:00
Simon Giesecke
c0341c3791
Bug 1628715 - Part 10: Activate nodiscard attributes on AppendElement(s). r=xpcom-reviewers,nika,peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D70834
2020-04-24 14:34:15 +00:00
Daosheng Mu
7edcf8ac3b
Bug 1628919 - Emit XRInputSourceEvent selectend event If a controller is disconnected. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D72248
2020-04-24 02:02:39 +00:00
Daosheng Mu
2b669b7fa8
Bug 1631635 - Implement IsPositionEmulated for XRInputSource. r=kip,imanol
...
Differential Revision: https://phabricator.services.mozilla.com/D71678
2020-04-21 11:17:34 +00:00
Imanol Fernandez
355194cd42
Bug 1631113 - Do not check the position cap to assign local floor height r=kip,daoshengmu
...
Differential Revision: https://phabricator.services.mozilla.com/D71409
2020-04-17 22:16:10 +00:00
Daosheng Mu
ece4eed6d3
Bug 1631067 - Fixes a typo of Pico Neo 2 controller profile name. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D71391
2020-04-17 20:27:46 +00:00
Daosheng Mu
a27bacb080
Bug 1630440 - Handle select and squeeze events when a VR controller's button only has pressed and unpressed. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D71113
--HG--
extra : moz-landing-system : lando
2020-04-16 01:02:45 +00:00
Imanol Fernandez
025f4b6335
Bug 1630170 - Delete XRWebGLLayer Framebuffer on XRSession presentation end r=kip,jgilbert,daoshengmu
...
Differential Revision: https://phabricator.services.mozilla.com/D71063
--HG--
extra : moz-landing-system : lando
2020-04-15 21:58:13 +00:00
Imanol Fernandez
c3114c1c70
Bug 1630007 - Apply XRSpace effective origin position and orientation using matrix multiplication. r=kip,daoshengmu
...
Differential Revision: https://phabricator.services.mozilla.com/D70923
--HG--
extra : moz-landing-system : lando
2020-04-15 22:05:26 +00:00
Daosheng Mu
eaec8a64c7
Bug 1630159 - Revert Oculus Quest and Focus Plus controller matrix to match WebVR. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D70979
--HG--
extra : moz-landing-system : lando
2020-04-15 21:56:50 +00:00
Imanol Fernandez
3f977ef73a
Bug 1627331 - Do not dispatch WebVR events when the display is used via WebXR API r=kip,daoshengmu
...
Differential Revision: https://phabricator.services.mozilla.com/D69613
--HG--
extra : moz-landing-system : lando
2020-04-07 20:37:00 +00:00
Daosheng Mu
c6c6582108
Bug 1627136 - Implement select and squeeze XRInputSourceEvent. r=kip,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D70080
--HG--
extra : moz-landing-system : lando
2020-04-10 01:22:28 +00:00
Kearwood Gilbert
20a905ded8
Bug 1628109 - Ensure that only one non-privileged (non-chrome) XRSession can be presenting at once r=daoshengmu
...
Differential Revision: https://phabricator.services.mozilla.com/D70270
--HG--
extra : moz-landing-system : lando
2020-04-09 01:22:52 +00:00
Daosheng Mu
fdf9039810
Bug 1627141 - Implement XRInputSourcesChangeEvent. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D69483
--HG--
extra : moz-landing-system : lando
2020-04-08 04:39:01 +00:00
Daosheng Mu
0a58c515ed
Bug 1626812 - Dispatch XRSessionEvent end when exiting XRSession. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D69296
--HG--
extra : moz-landing-system : lando
2020-04-08 04:38:53 +00:00
Daosheng Mu
f2c389fbee
Bug 1617023 - Part 2: OpenVR/Oculus controller XR mode. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D67432
--HG--
extra : moz-landing-system : lando
2020-04-08 03:23:47 +00:00
Daosheng Mu
595afe46cc
Bug 1617023 - Part 1: Integrating Gamepad with XRInputSource. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D67431
--HG--
extra : moz-landing-system : lando
2020-04-08 03:23:34 +00:00
Stefan Hindli
585cd46052
Backed out 3 changesets (bug 1617023) for causing mass bustages CLOSED TREE
...
Backed out changeset 2ff0eabe84e9 (bug 1617023)
Backed out changeset 8cadc6705690 (bug 1617023)
Backed out changeset 3a6247b39244 (bug 1617023)
2020-04-08 04:26:40 +03:00
Daosheng Mu
24566d323f
Bug 1617023 - Part 2: OpenVR/Oculus controller XR mode. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D67432
--HG--
extra : moz-landing-system : lando
2020-04-07 22:55:39 +00:00
Daosheng Mu
91ad9bdf58
Bug 1617023 - Part 1: Integrating Gamepad with XRInputSource. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D67431
--HG--
extra : moz-landing-system : lando
2020-04-07 22:55:41 +00:00
Daosheng Mu
7f945fd97b
Bug 1611310 - Implement XRInputSource module. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D67430
--HG--
extra : moz-landing-system : lando
2020-04-07 23:49:47 +00:00
Stefan Hindli
3b135390cf
Backed out changeset 717f97c0d871 (bug 1611310) for causing mass build bustages CLOSED TREE
2020-04-08 01:46:32 +03:00
Stefan Hindli
21c4b1ce50
Backed out 5 changesets (bug 1617023, bug 1627141, bug 1626812) for causing being related to Bug 1611310 CLOSED TREE
...
Backed out changeset b975de50682b (bug 1627141)
Backed out changeset 481325c44e80 (bug 1626812)
Backed out changeset 546b90fd1689 (bug 1617023)
Backed out changeset f54ac49bbc0a (bug 1617023)
Backed out changeset 1ebf382e7133 (bug 1617023)
2020-04-08 01:45:47 +03:00
Daosheng Mu
bc1f3fa9ea
Bug 1627141 - Implement XRInputSourcesChangeEvent. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D69483
--HG--
extra : moz-landing-system : lando
2020-04-07 21:26:54 +00:00
Daosheng Mu
7efbfa3c65
Bug 1626812 - Dispatch XRSessionEvent end when exiting XRSession. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D69296
--HG--
extra : moz-landing-system : lando
2020-04-07 21:26:46 +00:00
Daosheng Mu
e4b13d6e39
Bug 1617023 - Part 2: OpenVR/Oculus controller XR mode. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D67432
--HG--
extra : moz-landing-system : lando
2020-04-07 21:30:02 +00:00
Daosheng Mu
184166d359
Bug 1617023 - Part 1: Integrating Gamepad with XRInputSource. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D67431
--HG--
extra : moz-landing-system : lando
2020-04-07 22:24:43 +00:00
Daosheng Mu
e2b211270f
Bug 1611310 - Implement XRInputSource module. r=kip
...
Differential Revision: https://phabricator.services.mozilla.com/D67430
--HG--
extra : moz-landing-system : lando
2020-04-07 21:26:01 +00:00