diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-08-01 16:32:37 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-08-01 16:32:37 +0530 |
commit | 8cb5fad8286d87f2e852d870581d4f867afaf435 (patch) | |
tree | 241d4ba12cb6fc944ce8bd6b3cfa0c2e5a65a8ae /components/script/dom/gpudevice.rs | |
parent | 6499367fe244917a15d47292b3aaf84222ee5748 (diff) | |
download | servo-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.rs | 8 |
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, |