mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fixing some style related issues in WebGPU.
Changed the Requests/Response from tuples to named struct variants and also sorted in alphabetical order. Replaced the ID generator functions from `globalscope` with a single function, which returns a `RefMut` and can call the appropriate method to generate resource IDs.
This commit is contained in:
parent
0f9b04680a
commit
000a5d543d
10 changed files with 561 additions and 472 deletions
|
@ -2207,7 +2207,11 @@ where
|
|||
Some(browsing_context_group) => {
|
||||
let adapter_request =
|
||||
if let FromScriptMsg::RequestAdapter(sender, options, ids) = request {
|
||||
WebGPURequest::RequestAdapter(sender, options, ids)
|
||||
WebGPURequest::RequestAdapter {
|
||||
sender,
|
||||
options,
|
||||
ids,
|
||||
}
|
||||
} else {
|
||||
return warn!("Wrong message type in handle_request_wgpu_adapter");
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue