diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-05-20 11:28:10 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-05-21 18:28:49 +0530 |
commit | a4f911699a6d17df0d53b24ff02619ac982c590e (patch) | |
tree | 936e1071b3bab265595b4392244dd66270c7d39e /components/script/dom/gpucomputepassencoder.rs | |
parent | 1a74382603ac05178b92373cff4c96a0f31741a6 (diff) | |
download | servo-a4f911699a6d17df0d53b24ff02619ac982c590e.tar.gz servo-a4f911699a6d17df0d53b24ff02619ac982c590e.zip |
Upgrade wgpu-core version to 0.5.0 and implement server-side logic for wgpu id recycling
Remove current implementation of MapReadAsync
Diffstat (limited to 'components/script/dom/gpucomputepassencoder.rs')
-rw-r--r-- | components/script/dom/gpucomputepassencoder.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/gpucomputepassencoder.rs b/components/script/dom/gpucomputepassencoder.rs index eb4c20c0075..76c9ec8eea4 100644 --- a/components/script/dom/gpucomputepassencoder.rs +++ b/components/script/dom/gpucomputepassencoder.rs @@ -36,12 +36,13 @@ pub struct GPUComputePassEncoder { } impl GPUComputePassEncoder { + #[allow(unsafe_code)] fn new_inherited(channel: WebGPU, parent: &GPUCommandEncoder) -> GPUComputePassEncoder { GPUComputePassEncoder { channel, reflector_: Reflector::new(), label: DomRefCell::new(None), - raw_pass: RefCell::new(Some(RawPass::new_compute(parent.id().0))), + raw_pass: RefCell::new(Some(unsafe { RawPass::new_compute(parent.id().0) })), command_encoder: Dom::from_ref(parent), } } |