Commit graph

25052 commits

Author SHA1 Message Date
Manpreet Singh Matharu
83ebb85dbd use update_cursor() in dispatch_mouse_window_move_event_class() method 2019-07-13 11:33:14 -04:00
bors-servo
8328763ff2
Auto merge of #23764 - jdm:hl-startup, r=paulrouget
Adjust gstreamer plugins for UWP.

This excludes a set of plugins and dependencies that are currently built with MinGW and will therefore cause WACK errors. The resulting set of plugins loaded by the UWP app are still not UWP-clean, but this makes it much easier to switch over to UWP-clean binaries in the future.

These changes also allow the HoloLens 2 app to start and load again after #23712.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #23757
- [x] These changes do not require tests because no tests for windows or UWP.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23764)
<!-- Reviewable:end -->
2019-07-13 11:31:26 -04:00
bors-servo
650f90b271
Auto merge of #23763 - servo:jdm-patch-40, r=Manishearth
Don't enable azure canvas feature by default.

This caused problems when I was trying to do a UWP build.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23763)
<!-- Reviewable:end -->
2019-07-12 19:42:02 -04:00
Manpreet Singh Matharu
a44f795845 track and update cursor while scrolling 2019-07-12 15:52:26 -04:00
Bastien Orivel
28fa0f8009 Update rayon to dedupe crossbeam-epoch
As a bonus this also removes one version of crossbeam-utils
2019-07-12 21:01:33 +02:00
Josh Matthews
dbaed5ed92 Make GL/GLES decisions based on the API in use. 2019-07-12 13:36:44 -04:00
Josh Matthews
ce01cd71e2 Adjust gstreamer plugins for UWP. 2019-07-12 10:35:09 -04:00
bors-servo
812bf8d816
Auto merge of #23758 - jdm:compositing-canvas-break, r=gterzian
Remove canvas->compositing dependency

There's one tiny place in the canvas crate that depends on the compositing crate, and it's really quite backwards. If we use trait objects instead it becomes much cleaner to reason about.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because no tests for windows-only webgl code.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23758)
<!-- Reviewable:end -->
2019-07-12 10:26:55 -04:00
Josh Matthews
577eb654cf
Don't enable azure canvas feature by default. 2019-07-12 08:43:33 -04:00
Josh Matthews
f02d594094 Remove canvas->compositing dependency. 2019-07-12 08:22:26 -04:00
bors-servo
df73c71fb1
Auto merge of #23516 - pcwalton:webrenderup, r=pcwalton,jdm
Upgrade WebRender

This is against an old Servo because I can't build current Servo due to compile errors in RNG crates. I verified that it starts up.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #23516
- [x] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23516)
<!-- Reviewable:end -->
2019-07-12 08:10:31 -04:00
Josh Matthews
4de93a145a Update dwrote. 2019-07-12 08:10:16 -04:00
Kagami Sascha Rosylight
01151274f1 Require default dictionary value for optional dicts 2019-07-12 12:16:09 +09:00
Kagami Sascha Rosylight
56f31c85ef Sync WebIDL.py with gecko 2019-07-12 12:14:06 +09:00
bors-servo
5fdc7c0d2c
Auto merge of #23731 - Manishearth:webxr-script, r=asajeffrey
Use new WebXR API in script

Todo:
 - [x] Hook new `Frame` information into `XRFrame`
 - [x] Make spaces use new transform info
 - [x] Hook up session view metadata correctly
 - [x] Get mocking working again
 - [x] Get inputs working

Optional todos:
 - [x] Add support for active and animationFrame bool on XRFrame
 - [x] Correctly handle viewer and offset spaces instead of casting
 - [x] Error on zero-length quaternions

<s>Not really ready for review yet, but you can go ahead and review what I have so far. It doesn't do anything yet, aside from crash horribly. I'm opening this PR early so i have a place to track progress.</s>

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23731)
<!-- Reviewable:end -->
2019-07-11 18:31:21 -04:00
Manish Goregaokar
c5a0fc56ea Use separate IPC-only locking mechanism when locking from webxr 2019-07-11 11:12:59 -07:00
Manish Goregaokar
036b495cb2 Error on invalid rotation values in XRRigidTransform constructor 2019-07-11 11:12:59 -07:00
Manish Goregaokar
0b88c565c5 Add active and animationFrame flags to XRFrame 2019-07-11 11:12:59 -07:00
Manish Goregaokar
7a8640ec1e Remove session deactivation 2019-07-11 11:12:59 -07:00
Manish Goregaokar
b654b6007a Hook input code into new webxr crate 2019-07-11 11:12:59 -07:00
Manish Goregaokar
0d5d1a3dc4 Update test API, hook it up to webxr mocking 2019-07-11 11:12:59 -07:00
Manish Goregaokar
b818af794a Add a viewer typed reference space 2019-07-11 11:12:59 -07:00
Manish Goregaokar
57c85361be Clean up vrdisplay, set active immersive session correctly 2019-07-11 11:12:59 -07:00
Manish Goregaokar
8780edb165 Hook webxr data into XRFrame/XRView/XRSpace 2019-07-11 11:12:59 -07:00
Manish Goregaokar
104a712a28 Remove old RAF code 2019-07-11 11:12:59 -07:00
Manish Goregaokar
877b6c67a1 Trigger callbacks in RAF 2019-07-11 11:12:59 -07:00
Manish Goregaokar
33421e8ee0 Apply pending render states in RAF 2019-07-11 11:12:59 -07:00
Manish Goregaokar
cf53cf6cc5 Add actual frame request in rAF 2019-07-11 11:12:59 -07:00
Manish Goregaokar
84014ffc54 Add basic rAF and cAF functions that do nothing with the callbacks 2019-07-11 11:12:59 -07:00
Manish Goregaokar
c7ed4379e8 Fill in updateRenderState() stubs 2019-07-11 11:12:59 -07:00
Manish Goregaokar
d55ed4240c Hook requestSession() into new XR crate 2019-07-11 11:12:59 -07:00
Manish Goregaokar
fb105d9ff2 Hook supportsSession() into new xr crate 2019-07-11 11:12:59 -07:00
bors-servo
5bc34e3e4d
Auto merge of #23740 - servo:jdm-patch-36, r=ferjm
Load GST videofilter plugins.

The video playback tries to create a videobalance element and can't find it without this plugin.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23740)
<!-- Reviewable:end -->
2019-07-11 06:48:36 -04:00
Manish Goregaokar
5f69a9e66a Expose webxr registry to window 2019-07-10 23:12:34 -07:00
bors-servo
305312e93b
Auto merge of #23746 - asajeffrey:webgl-lies-damn-lies-and-serialization, r=Manishearth
WebGLSender doesn't really implement Serializable

<!-- Please describe your changes on the following line: -->

Add an API which turns a `WebGLSender` into something that is actually serializable.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because this is fixing a panic

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23746)
<!-- Reviewable:end -->
2019-07-11 01:07:13 -04:00
Alan Jeffrey
1b05ad4bb3 WebGLSender doesn't really implement Serializable 2019-07-10 19:06:51 -05:00
Josh Matthews
0314b2cdd5
Load GST videofilter plugins. 2019-07-10 13:36:56 -04:00
Michal Mieczkowski
4c27e680e0 Add clipboard cut functionality 2019-07-10 18:44:43 +02:00
Josh Matthews
089823ae20 Remove sometimes-unused bounds field from base display item to prevent confusion. 2019-07-09 10:52:43 -04:00
Josh Matthews
f1b10393c2 rustfmt 2019-07-09 10:52:43 -04:00
Josh Matthews
644addd159 WebRender rectangles items are sized based on their clipping rectangles. 2019-07-09 10:51:57 -04:00
Josh Matthews
10ab466e5d Create a solid rectangle display list entry for the page background. 2019-07-09 10:51:56 -04:00
Patrick Walton
e57e2121b2 Get the servo crate building with the new WebRender 2019-07-09 10:51:55 -04:00
Patrick Walton
6b9924bec4 Stop storing display lists in an Arc 2019-07-09 10:50:29 -04:00
Patrick Walton
7ca570dd1d Upgrade display list building for the WebRender update. 2019-07-09 10:50:28 -04:00
Patrick Walton
7915a7099f Fix WebRender churn in compositing 2019-07-09 10:50:28 -04:00
Patrick Walton
ae42048540 A few fixes to the compositor for WebRender 2019-07-09 10:50:28 -04:00
Patrick Walton
2f9c9cefdb WebRender units are no longer reexported. 2019-07-09 10:50:27 -04:00
bors-servo
988e38fe0a
Auto merge of #23712 - servo:gstreamer-windows, r=ferjm
Support WebAudio on Windows

These changes improve the GStreamer experience on Windows in several ways:
* we package the set of plugins and their dependencies that Servo requires for media support
* we explicitly load those plugins when starting the media engine rather than relying on an existing gstreamer installation

These changes do not affect the experience on non-Windows platforms, but the path is clear to do so in order to fix problems like #23519. With these changes I can successfully hear a tone when loading https://joshmatthews.net/osc.html in both a desktop build and a UWP build.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #23631 and fix #23698
- [x] These changes do not require tests because no tests on windows ;_;

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23712)
<!-- Reviewable:end -->
2019-07-08 12:40:05 -04:00
Emilio Cobos Álvarez
fbf6b926e5
style: Servo doesn't support backdrop-filter yet. 2019-07-08 14:59:16 +02:00