aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpudevice.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2020-08-01 16:32:37 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2020-08-01 16:32:37 +0530
commit8cb5fad8286d87f2e852d870581d4f867afaf435 (patch)
tree241d4ba12cb6fc944ce8bd6b3cfa0c2e5a65a8ae /components/script/dom/gpudevice.rs
parent6499367fe244917a15d47292b3aaf84222ee5748 (diff)
downloadservo-8cb5fad8286d87f2e852d870581d4f867afaf435.tar.gz
servo-8cb5fad8286d87f2e852d870581d4f867afaf435.zip
Report errors from void returning operations
Diffstat (limited to 'components/script/dom/gpudevice.rs')
-rw-r--r--components/script/dom/gpudevice.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/components/script/dom/gpudevice.rs b/components/script/dom/gpudevice.rs
index 7719d937e96..adde335bd47 100644
--- a/components/script/dom/gpudevice.rs
+++ b/components/script/dom/gpudevice.rs
@@ -148,12 +148,14 @@ impl GPUDevice {
label: Option<String>,
) -> DomRoot<Self> {
let queue = GPUQueue::new(global, channel.clone(), queue);
- reflect_dom_object(
+ let device = reflect_dom_object(
Box::new(GPUDevice::new_inherited(
channel, adapter, extensions, limits, device, &queue, label,
)),
global,
- )
+ );
+ queue.set_device(&*device);
+ device
}
}
@@ -341,7 +343,7 @@ impl GPUDeviceMethods for GPUDevice {
&self.global(),
self.channel.clone(),
buffer,
- self.device,
+ &self,
state,
descriptor.size,
map_info,