servo/components
bors-servo 07eb9ab3fe
Auto merge of #26660 - kunalmohan:gpu-async-resource, r=kvark
Make WebGPU resource creation async and prevent panic during shutdown if WebGPU is enabled.

<!-- Please describe your changes on the following line: -->
1. Make WebGPU resource creation async.
2. Remove some unused code in `WebGPURequest::RequestAdapter`.
3. Prevent panic during shutdown. Since WGPU thread is killed before script, sender and receiver in the script panic at either of the two places-
a. If a buffer is still alive, script tries to send `WebGPURequest::DestroyBuffer` to server while dropping the buffer during shutdown.
7170a69695/components/script/dom/gpubuffer.rs (L118-L122) 7170a69695/components/script/dom/gpubuffer.rs (L182-L186)
b. Receiver in script-thread panics with `RecvError` as soon as sender on server side is dropped. 7170a69695/components/script/script_thread.rs (L1456-L1457)

r?@kvark

---
<!-- 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 #25472 (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. -->
2020-05-27 00:54:16 -04:00
..
allocator
atoms Add support for transitionrun events 2020-04-24 14:20:37 +02:00
background_hang_monitor Some Cargo.toml cleanups 2020-05-13 22:09:56 -07:00
bluetooth Some Cargo.toml cleanups 2020-05-13 22:09:56 -07:00
bluetooth_traits Some Cargo.toml cleanups 2020-05-13 22:09:56 -07:00
canvas update rust toolchain 2020-05-21 21:51:49 +05:30
canvas_traits Auto merge of #26513 - jdm:webgl2-formats, r=asajeffrey 2020-05-13 18:33:37 -04:00
compositing Some Cargo.toml cleanups 2020-05-13 22:09:56 -07:00
config Auto merge of #26421 - Eijebong:remove-influent, r=jdm 2020-05-25 23:08:32 -04:00
config_plugins More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
constellation Implement client-side logic for WebGPU id recycling 2020-05-22 21:22:19 +05:30
debugger
deny_public_fields
derive_common
devtools More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
devtools_traits More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
dom_struct
domobject_derive More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
embedder_traits More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
fallible More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
geometry
gfx More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
gfx_traits More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
hashglobe More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
jstraceable_derive
layout Remove use of nightly features in parking_lot. Update many uses from 0.9 to 0.10. 2020-05-26 09:34:50 -04:00
layout_2020 Remove use of nightly features in parking_lot. Update many uses from 0.9 to 0.10. 2020-05-26 09:34:50 -04:00
layout_thread Remove use of nightly features in parking_lot. Update many uses from 0.9 to 0.10. 2020-05-26 09:34:50 -04:00
layout_thread_2020 Remove use of nightly features in parking_lot. Update many uses from 0.9 to 0.10. 2020-05-26 09:34:50 -04:00
layout_traits More Cargo.toml cleanups 2020-05-14 22:20:18 -07:00
malloc_size_of More Cargo.toml updates 2020-05-25 11:34:37 -07:00
media More Cargo.toml updates 2020-05-25 11:34:37 -07:00
metrics More Cargo.toml updates 2020-05-25 11:34:37 -07:00
msg Auto merge of #26646 - jdm:parking_lot, r=asajeffrey 2020-05-26 10:48:10 -04:00
net Remove duplicate Host header from initial websocket request. 2020-05-22 14:51:43 -04:00
net_traits check http_state in determine_request_referrer 2020-05-19 20:06:59 +03:00
pixels
profile Auto merge of #26421 - Eijebong:remove-influent, r=jdm 2020-05-25 23:08:32 -04:00
profile_traits Fix undefined behavior in energymon::init 2020-05-25 11:34:06 -04:00
rand
range
remutex
script Auto merge of #26660 - kunalmohan:gpu-async-resource, r=kvark 2020-05-27 00:54:16 -04:00
script_layout_interface Remove use of nightly features in parking_lot. Update many uses from 0.9 to 0.10. 2020-05-26 09:34:50 -04:00
script_plugins Upgrade to rustc 1.44.0-nightly (42abbd887 2020-04-07) 2020-04-09 21:33:44 +02:00
script_traits Implement client-side logic for WebGPU id recycling 2020-05-22 21:22:19 +05:30
selectors style: Implement parsing / selector-matching for :is() and :where(). 2020-04-18 03:48:15 +02:00
servo Convert all uses of UpdateResources api to use webrender transactions. 2020-05-11 17:41:56 -04:00
servo_arc
size_of_test
std_test_override
style Remove use of nightly features in parking_lot. Update many uses from 0.9 to 0.10. 2020-05-26 09:34:50 -04:00
style_derive style: Reformat recent changes. 2020-04-16 17:50:17 +02:00
style_traits style: Add CSS Error for DisallowedImportRule. 2020-04-16 16:35:07 +02:00
to_shmem
to_shmem_derive
url make is_origin_trustworthy a method of ServoUrl + fix localhost handling 2020-05-19 20:06:59 +03:00
webdriver_server Update serde_json. 2020-04-23 16:08:40 -04:00
webgpu Make WebGPU resource creation fully async 2020-05-26 19:16:46 +05:30
webrender_surfman Update surfman to 0.2 and remove glutin 2020-04-17 23:44:53 -05:00
webrender_traits Update surfman to 0.2 and remove glutin 2020-04-17 23:44:53 -05:00