Commit graph

7209 commits

Author SHA1 Message Date
bors-servo
577830de90
Auto merge of #21557 - servo:webgl, r=Manishearth
Classify all WebGL test errors

<!-- 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/21557)
<!-- Reviewable:end -->
2018-08-31 17:39:10 -04:00
Anthony Ramine
166ee7acbc Set dom.canvas-text.enabled for some WebGL tests 2018-08-31 21:58:06 +02:00
Anthony Ramine
02bd2630e4 Add some bug links in WebGL 1.0 expectations 2018-08-31 15:29:31 +02:00
Manish Goregaokar
e1131b474c Add tests for options bounds in PannerNode's constructor 2018-08-31 05:32:23 -07:00
bors-servo
1ee3deea27
Auto merge of #21388 - gterzian:introduce_task_queues, r=jdm
Introduce task queues, and throttling performance timeline tasksource

<!-- 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: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #19997 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/21388)
<!-- Reviewable:end -->
2018-08-30 14:56:26 -04:00
Gregory Terzian
ca6306c430 introduce task-queues, and throttling the performance-timeline task-source, in script and worker threads.
queue
2018-08-31 02:10:34 +08:00
bors-servo
6f81ed49f6
Auto merge of #21523 - servo:webgl, r=avadacatavra,jdm
Some more drive-by WebGL fixes and cleanups

<!-- 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/21523)
<!-- Reviewable:end -->
2018-08-30 12:23:31 -04:00
Anthony Ramine
900a19058e Support unions of objects in overloads
Part of #20513, implementing the parts useful for WebGL.
2018-08-30 16:15:40 +02:00
Anthony Ramine
4cf944eab8 Fix gl.isBuffer for buffers that are marked for deletion but still attached 2018-08-30 16:15:39 +02:00
Anthony Ramine
7b673de4d6 Always emit INVALID_OPERATION on null element buffers in drawElements 2018-08-30 16:15:39 +02:00
Anthony Ramine
83e27e4167 Remove WebGLRenderingContext.STENCIL_INDEX 2018-08-30 16:15:38 +02:00
Anthony Ramine
7f9d560f28 Allow binding the null buffer in vertexAttribPointer if offset is 0 2018-08-30 16:15:38 +02:00
Anthony Ramine
0ba66f9f12 Fix the error for invalid arrays passed to gl.vertexAttrib*v() 2018-08-30 16:15:38 +02:00
Anthony Ramine
273aac87e4 Make use of window.onerror in Khronos tests 2018-08-30 16:15:35 +02:00
Anthony Ramine
6089e45b7d Make setZeroTimeout use window.setTimeout 2018-08-29 02:05:49 +02:00
Anthony Ramine
cb2f83cf8e Fix Drop assertion for WebGLBuffer
A buffer that is dropped may not have been marked for deletion but it
must not be attached to any VAO.
2018-08-29 02:05:49 +02:00
Anthony Ramine
59b3f0458e Disable many texture-related tests for things we don't support yet 2018-08-29 02:05:49 +02:00
Anthony Ramine
c48d1fa5b7 Disable rapid-resizing.html
The absence of support for preserveDrawingBuffer makes it timeout.
2018-08-28 19:36:26 +02:00
Anthony Ramine
5a8ed02d5c Disable quickCheckAPI-S_V.html
It generates random input which even trips the invalid surrogate panic.
2018-08-28 19:36:26 +02:00
Anthony Ramine
b660c62c9e Delete our Servo-specific WebGL tests
Those test things that are already tested by Khronos tests.
2018-08-28 19:36:25 +02:00
Anthony Ramine
428b305ea6 Merge unit.patch and unit2.patch 2018-08-28 19:35:50 +02:00
Anthony Ramine
b1ce74caa5 Remove obsolete patch 2018-08-28 19:35:50 +02:00
Anthony Ramine
20dc32d147 Clean up some WebGL expectations 2018-08-28 19:35:49 +02:00
WPT Sync Bot
394aced19f Update web-platform-tests to revision ab64b78a8f6777a1d95d8d1d4bba9ccdbecf94ea 2018-08-26 23:02:58 -04:00
Gregory Terzian
7b8d903d57 fire error when placeholder image is loaded 2018-08-26 19:06:16 +08:00
Anthony Ramine
26a311fc62 Use sdk/tests when syncing from upstream Khronos WebGL tests 2018-08-25 13:34:53 +02:00
Anthony Ramine
4852f7d616 Move Khronos WebGL tests to /_webgl/ 2018-08-25 03:43:32 +02:00
bors-servo
d827370804
Auto merge of #21502 - Manishearth:listener, r=ferjm
Add AudioListener/AudioPanner DOM interfaces

Seems to work.

I'll need some changes to the servo-media side to support the panner
node getters as well as the older `setPosition()`/etc APIs. I'll get to
those later.

r? @ferjm

<!-- 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/21502)
<!-- Reviewable:end -->
2018-08-24 19:13:05 -04:00
Manish Goregaokar
04e60e683a Update WPT expectations 2018-08-24 16:12:07 -07:00
Manish Goregaokar
0f66f17001 Add HTML test 2018-08-24 12:22:19 -07:00
bors-servo
39551199c7
Auto merge of #21356 - servo:nll, r=jdm
Fix the build for NLL

Test with `RUSTFLAGS="-Zborrowck=mir -Ztwo-phase-borrows" cargo build`

https://internals.rust-lang.org/t/help-us-get-non-lexical-lifetimes-nll-over-the-finish-line/7807/7

<!-- 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/21356)
<!-- Reviewable:end -->
2018-08-24 12:13:09 -04:00
Simon Sapin
a9627d233f Update getopts
*Sigh* https://github.com/rust-lang-nursery/getopts/pull/53#issuecomment-415770100
2018-08-24 17:49:58 +02:00
bors-servo
ee7947aeef
Auto merge of #21503 - servo-wpt-sync:wpt_update_23-08-2018, r=jdm
Sync WPT with upstream (23-08-2018)

Automated downstream sync of changes from upstream as of 23-08-2018.
[no-wpt-sync]

<!-- 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/21503)
<!-- Reviewable:end -->
2018-08-24 09:05:35 -04:00
Anthony Ramine
da4f170ad6 Update WebGL tests
Apparently unit2.patch wasn't correctly applied.
2018-08-24 13:15:06 +02:00
Anthony Ramine
d4eb6b196e Add newlines at the end of WebGL patches 2018-08-24 13:13:47 +02:00
Anthony Ramine
8582d18d2f Fix import-conformance-tests.py 2018-08-24 13:12:59 +02:00
WPT Sync Bot
ace02666c2 Update web-platform-tests to revision 34f9b93c2749043ba68485dea92d1fb554075e60 2018-08-23 23:42:32 -04:00
bors-servo
54b387ab59
Auto merge of #21348 - pyfisch:only-webrender-items, r=jdm
Replace Servo DL items with WR ones

The Servo internal display list items are already pretty much
equivalent to the WebRender ones. Except that Servo items contain
base information and associated glyphs and gradient stops which are
stored implicitly in WebRender. Remove the display items for
rectangles, text, images, border, gradients and box shadow and
replace them with their WebRender counter parts.

Some more internal items like line, text shadow and iframe can definitively be replaced with WebRender equivalents but I think the PR is already quite huge. If WebRender would expose a quite minimal API which allowed servo to directly push items onto the display list most of webrender_helpers boilerplate code could go away. As WebRender performs normalization of gradients this would need to be called by servo explicitly in this case.

It should be noted that gradient borders don't actually work neither with the old version nor with this PR as the measurements are all set to zero.

Part of #19676

<!-- 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/21348)
<!-- Reviewable:end -->
2018-08-23 19:37:41 -04:00
WPT Sync Bot
280c87822d Update web-platform-tests to revision 50d6ee076e94273080d9f3b69be0bf4eeae156d3 2018-08-22 23:24:36 -04:00
bors-servo
aac4a3485f
Auto merge of #21430 - Eijebong:ws-origin, r=jdm
Properly set the origin on websocket messages

<!-- 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/21430)
<!-- Reviewable:end -->
2018-08-22 15:53:26 -04:00
Josh Matthews
9f746b33a8 wpt: Handle wpt version number changes when updating the manifest. 2018-08-21 09:24:16 -04:00
Alan Jeffrey
74c1e00d81 Upgraded to SM 60 2018-08-20 18:22:29 -04:00
bors-servo
cc41d52291
Auto merge of #21458 - servo-wpt-sync:wpt_update_18-08-2018, r=jdm
Sync WPT with upstream (18-08-2018)

Automated downstream sync of changes from upstream as of 18-08-2018.
[no-wpt-sync]

<!-- 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/21458)
<!-- Reviewable:end -->
2018-08-19 13:12:37 -04:00
bors-servo
e7791f9a00
Auto merge of #21452 - emilio:gecko-sync, r=emilio
style: Import changes from mozilla-central.

See each individual commit for details.

<!-- 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/21452)
<!-- Reviewable:end -->
2018-08-19 07:57:53 -04:00
Emilio Cobos Álvarez
142cdcd3fd
Update test expectations. 2018-08-19 13:56:21 +02:00
WPT Sync Bot
3ebfea9f10 Update web-platform-tests to revision 6aef6676d2f95c29de17666cc70d61b517939fbf 2018-08-18 22:44:56 -04:00
WPT Sync Bot
0114122fe0 Update web-platform-tests to revision 6c2d23b1b5e4dc00c944eedd16a11850e74a2d11 2018-08-18 15:48:20 +00:00
WPT Sync Bot
8edc7686ef Update web-platform-tests to revision 2dda7b8c10c7566fa6167a32b09c85d51baf2a85 2018-08-16 22:42:22 -04:00
Bastien Orivel
a1925aab52 Properly set the origin on websocket messages 2018-08-16 16:53:38 +02:00
bors-servo
cfae377660
Auto merge of #21436 - Eijebong:ws-protocols, r=jdm
The WS protocols should be case sensitive, not insensitive

<!-- 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/21436)
<!-- Reviewable:end -->
2018-08-16 10:19:20 -04:00