Commit graph

3791 commits

Author SHA1 Message Date
bors-servo
de89b09f68
Auto merge of #24253 - asajeffrey:glutin-new-window-shares-gl-bindings, r=paulrouget
Glutin new window shares gl bindings

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

At the moment when the glutin port creates a new window which shares GL objects, it creates new GL bindings rather than sharting the existing ones. This PR fixes that.

---
<!-- 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 it's an efficiency improvement

<!-- 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/24253)
<!-- Reviewable:end -->
2019-09-21 04:22:24 -04:00
Alan Jeffrey
99699ea70c Make the current window not current while creating a new shared window in the glutin port 2019-09-20 10:02:27 -05:00
Alan Jeffrey
5f503f034a Don't completely trust servo's tracking of the GL context in glutin 2019-09-20 10:01:50 -05:00
Alan Jeffrey
a7ed8f7e5a Add some debug! logs to the glutin port 2019-09-20 10:00:56 -05:00
Alan Jeffrey
8e95efb8b2 Share the GL bindings when creating a new glutin window which shares GL objects 2019-09-20 09:59:32 -05:00
Fernando Jiménez Moreno
1651b41935 Go back to original window size after exiting fullscreen 2019-09-20 11:28:54 +02:00
Alan Jeffrey
d1c3ddddd3 Use EGL context and display parameters when initializing magicleap servo 2019-09-18 12:48:07 -05:00
Josh Matthews
1cefae7181 Replace use of gleam in webgl with sparkle. 2019-09-11 11:40:04 -04:00
bors-servo
524e135573
Auto merge of #24129 - Eijebong:parking_lot, r=jdm
Deduplicate parking_lot by updating it to 0.9

<!-- 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/24129)
<!-- Reviewable:end -->
2019-09-05 15:50:29 -04:00
Bastien Orivel
b6cddbebaa Deduplicate parking_lot and friends by updating it to 0.9 2019-09-05 10:47:39 +02:00
angelortiz1007
49934c0335 Added support in CInitOptions to pass logging/filter modules to VSLogger. 2019-09-04 19:00:28 -05:00
Bastien Orivel
92161ecfbc Update ipc-channel and related dependencies 2019-08-27 23:44:04 +02:00
Simon Sapin
2130e6966a Android glue: don’t zero-init non-null function pointers
Fixes:

```rust
error: the type `android_injected_glue::ffi::android_app` does not permit zero-initialization
   --> ports/libsimpleservo/jniapi/src/lib.rs:511:46
    |
511 |     let mut app: ffi::android_app = unsafe { std::mem::zeroed() };
    |                                              ^^^^^^^^^^^^^^^^^^
    |                                              |
    |                                              this code causes undefined behavior when executed
    |                                              help: use `MaybeUninit<T>` instead
    |
    = note: `-D invalid-value` implied by `-D warnings`
note: Function pointers must be non-null (in this struct field)
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/android_injected_glue-0.2.3/src/ffi.rs:23:5
    |
23  |     pub onAppCmd: extern fn(*mut android_app, i32),
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
```
2019-08-23 08:23:21 +02:00
Simon Sapin
98e4a53b72 Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15) 2019-08-23 08:23:21 +02:00
bors-servo
8672ab5447
Auto merge of #23999 - paulrouget:missingCMethods, r=jdm
Missing C methods

Depends on #23983

Fix #23969

<!-- 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/23999)
<!-- Reviewable:end -->
2019-08-22 22:59:55 -04:00
Paul Rouget
b642ff2057 Implement missing C callbacks 2019-08-22 07:43:12 +02:00
Paul Rouget
fe358833cd Do not leak strings 2019-08-21 14:17:49 +02:00
Paul Rouget
3933b432fa Panic HoloLens app on rust panic 2019-08-21 06:20:20 +02:00
bors-servo
4094a26183
Auto merge of #23979 - Eijebong:deps-deps-deps, r=jdm
Update webrender, image, png and raqote

This will avoid duping png because of the raqote backend

<!-- 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/23979)
<!-- Reviewable:end -->
2019-08-16 21:08:58 -04:00
Bastien Orivel
138ef57534 Update webrender, image, png and raqote
This will avoid duping png because of the raqote backend
2019-08-16 00:34:22 +02:00
Bastien Orivel
f7411db717 Update toml to 0.5 and cbindgen to 0.9 2019-08-13 13:26:13 +02:00
Manish Goregaokar
acfe1ee0dd Add support for OpenXR hololens backend 2019-08-12 19:28:48 -07:00
angelortiz1007
2bd2281853 Added support for stdout/stderr (ref issue# 23734) to be redirected to OutputDebugStringA(). 2019-08-09 14:09:19 -05:00
bors-servo
371f514664
Auto merge of #23904 - paulrouget:loop2, r=gterzian
Better Hololens loop

Depends on #23900

Fix #23823

r? @gterzian

<!-- 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/23904)
<!-- Reviewable:end -->
2019-08-07 06:21:36 -04:00
Alan Jeffrey
1ca495b321 Added magicleap webxr back end 2019-08-02 12:14:11 -05:00
Paul Rouget
b7667ff362 Clarify hololens loop 2019-08-02 00:45:42 +02:00
Josh Matthews
6caf407a53 Support waking up headless window event loops while they are sleeping. 2019-07-25 23:05:46 -04:00
Josh Matthews
72413bd371 Make headless window set current GL context before compositing. 2019-07-25 23:05:03 -04:00
Josh Matthews
39d13d1fc8 Support running WebGL in its own thread or on the main thread. 2019-07-25 23:05:03 -04:00
Alan Jeffrey
701256d837 Pass the event loop waker into WebXR 2019-07-25 12:55:26 -05:00
bors-servo
d93b652c11
Auto merge of #23828 - angelortiz1007:winrt-servo, r=jdm
Made all "free" extern "C" APIs in simpleservo fallible by returning …

…null pointr or boolean value.  ServoApp will need to be modified to check return values.

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

---
<!-- 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 #23514 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because _ServoApp will test/verify.__

<!-- 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/23828)
<!-- Reviewable:end -->
2019-07-24 22:33:55 -04:00
Angel
dde4f71257 Implemented fn catch_any_panic<> to catch any panic from "free" extern "C" functions returning bool. Modified "free" extern "C" functions to now be falliable by returning bool value. 2019-07-24 09:41:07 -05:00
bors-servo
55cea0dd64
Auto merge of #23830 - servo:jdm-patch-43, r=paulrouget
Generate simpleservo.h in appropriate target directory.

This change makes the C API's build script take the the actual build target into account when generating the C header.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #23794
- [x] These changes do not require tests because no tests for 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/23830)
<!-- Reviewable:end -->
2019-07-24 08:27:08 -04:00
Emilio Cobos Álvarez
3d57c22e9c Update euclid.
There are a few canvas2d-related dependencies that haven't updated, but they
only use euclid internally so that's not blocking landing the rest of the
changes.

Given the size of this patch, I think it's useful to get this landed as-is.
2019-07-23 23:09:55 +02:00
Josh Matthews
6fa8e30e1d
Generate simpleservo.h in appropriate target directory. 2019-07-22 22:16:22 -04:00
Fernando Jiménez Moreno
a8419c4a86 Fix media-controls resources naming 2019-07-22 17:40:16 +02:00
Fernando Jiménez Moreno
e344203c11 Only allow UA widgets as children of media elements
Do not allow pseudo-elements for replaced elements
2019-07-22 17:40:15 +02:00
Fernando Jiménez Moreno
a664449681 Media UI basic functionality 2019-07-22 17:40:14 +02:00
Fernando Jiménez Moreno
1c02fc94a8 Barebones media UI 2019-07-22 17:40:14 +02:00
bors-servo
60f1ffc5a7
Auto merge of #23801 - paulrouget:alert, r=jdm
Expose javascript:window.alert() to libsimpleservo

<!-- 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/23801)
<!-- Reviewable:end -->
2019-07-19 21:18:42 -04:00
bors-servo
bb6265b99b
Auto merge of #23783 - angelortiz1007:winrt-servo, r=jdm
Add source module to UWP logging output

Updated  support/hololens/Servo.cpp to use url: google.com

New debug output:
```
RUST: DEBUG - html5ever::tokenizer - got characters None
RUST: DEBUG - script::script_thread - Processing event FromConstellation(ConstellationControlMsg::NavigationResponse).
RUST: DEBUG - html5ever::tokenizer - processing in state RawData(ScriptData)
```

---
<!-- 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 #23755
- [x] These changes do not require tests because we can't automatically test logging output.

<!-- 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/23783)
<!-- Reviewable:end -->
2019-07-19 16:25:48 -04:00
Paul Rouget
3a374b3455 Expose javascript:window.alert() to libsimpleservo 2019-07-19 16:49:26 +02:00
Angel
1547620469 Include source module in UWP logging output. 2019-07-17 12:12:49 -05:00
Alan Jeffrey
b19e7d1cbf Get the glwindow test XR device to share a GL context with WebGL 2019-07-17 09:49:49 -05:00
bors-servo
7a0c126c1b
Auto merge of #23762 - servo:jdm-patch-39, r=SimonSapin
Support no_wgl feature in desktop builds.

This makes it possible to test WebGL in ANGLE on desktop.

<!-- 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/23762)
<!-- Reviewable:end -->
2019-07-12 16:55:31 -04:00
Josh Matthews
065730d478
Support no_wgl feature in desktop builds. 2019-07-12 08:39:28 -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
30ea282720 Fix mlservo. 2019-07-12 08:10:17 -04:00
Josh Matthews
921d91f731 Fix simpleservo. 2019-07-12 08:10:16 -04:00
Manish Goregaokar
0d5d1a3dc4 Update test API, hook it up to webxr mocking 2019-07-11 11:12:59 -07:00