diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-06-19 00:52:16 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-06-19 11:12:50 +0530 |
commit | 48ef306bd3f1c9abbd1437e7a8f2b21b7b307a04 (patch) | |
tree | 0225482e8b537e696169b0cff97d564487747d78 /components/script/dom/gpusampler.rs | |
parent | 00b3f785c4d4bb4da9d883128d9dc18e0406ad71 (diff) | |
download | servo-48ef306bd3f1c9abbd1437e7a8f2b21b7b307a04.tar.gz servo-48ef306bd3f1c9abbd1437e7a8f2b21b7b307a04.zip |
Update wgpu-core and wgpu-types
Diffstat (limited to 'components/script/dom/gpusampler.rs')
-rw-r--r-- | components/script/dom/gpusampler.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/components/script/dom/gpusampler.rs b/components/script/dom/gpusampler.rs index 488d3df1d05..2c15d89b0fc 100644 --- a/components/script/dom/gpusampler.rs +++ b/components/script/dom/gpusampler.rs @@ -10,13 +10,11 @@ use crate::dom::bindings::str::DOMString; use crate::dom::globalscope::GlobalScope; use dom_struct::dom_struct; use std::cell::Cell; -use webgpu::{WebGPU, WebGPUDevice, WebGPUSampler}; +use webgpu::{WebGPUDevice, WebGPUSampler}; #[dom_struct] pub struct GPUSampler { reflector_: Reflector, - #[ignore_malloc_size_of = "channels are hard"] - channel: WebGPU, label: DomRefCell<Option<DOMString>>, device: WebGPUDevice, compare_enable: bool, @@ -26,7 +24,6 @@ pub struct GPUSampler { impl GPUSampler { fn new_inherited( - channel: WebGPU, device: WebGPUDevice, compare_enable: bool, sampler: WebGPUSampler, @@ -34,7 +31,6 @@ impl GPUSampler { ) -> Self { Self { reflector_: Reflector::new(), - channel, label: DomRefCell::new(None), valid: Cell::new(valid), device, @@ -45,7 +41,6 @@ impl GPUSampler { pub fn new( global: &GlobalScope, - channel: WebGPU, device: WebGPUDevice, compare_enable: bool, sampler: WebGPUSampler, @@ -53,7 +48,6 @@ impl GPUSampler { ) -> DomRoot<Self> { reflect_dom_object( Box::new(GPUSampler::new_inherited( - channel, device, compare_enable, sampler, |