mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Update wgpu-core and wgpu-types
This commit is contained in:
parent
1d4efb48ba
commit
3b5ede153d
18 changed files with 58 additions and 90 deletions
|
@ -23,7 +23,7 @@ pub struct GPUQueue {
|
|||
}
|
||||
|
||||
impl GPUQueue {
|
||||
fn new_inherited(channel: WebGPU, queue: WebGPUQueue) -> GPUQueue {
|
||||
fn new_inherited(channel: WebGPU, queue: WebGPUQueue) -> Self {
|
||||
GPUQueue {
|
||||
channel,
|
||||
reflector_: Reflector::new(),
|
||||
|
@ -32,7 +32,7 @@ impl GPUQueue {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(global: &GlobalScope, channel: WebGPU, queue: WebGPUQueue) -> DomRoot<GPUQueue> {
|
||||
pub fn new(global: &GlobalScope, channel: WebGPU, queue: WebGPUQueue) -> DomRoot<Self> {
|
||||
reflect_dom_object(Box::new(GPUQueue::new_inherited(channel, queue)), global)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue