diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2024-09-21 06:20:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-21 04:20:18 +0000 |
commit | 24ad2a05268ebc21b5ad127dac28d1e6f880512c (patch) | |
tree | e8338c9b9f0876f5896cc6ea13540a9c6edac6f5 /components/script/dom/globalscope.rs | |
parent | 28d28d0a0a9c9ee2acf45593b9e6c0288857f0a9 (diff) | |
download | servo-24ad2a05268ebc21b5ad127dac28d1e6f880512c.tar.gz servo-24ad2a05268ebc21b5ad127dac28d1e6f880512c.zip |
chore: Update wgpu (#33506)
* Update wgpu
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* use all backends at runtime
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* clean up some adapter stuff
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Update expectations
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* flakes
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'components/script/dom/globalscope.rs')
-rw-r--r-- | components/script/dom/globalscope.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/globalscope.rs b/components/script/dom/globalscope.rs index cd5de7063ce..52afc63ba47 100644 --- a/components/script/dom/globalscope.rs +++ b/components/script/dom/globalscope.rs @@ -102,7 +102,7 @@ use crate::dom::gamepad::{contains_user_gesture, Gamepad}; use crate::dom::gamepadevent::GamepadEventType; use crate::dom::gpudevice::GPUDevice; use crate::dom::htmlscriptelement::{ScriptId, SourceCode}; -use crate::dom::identityhub::Identities; +use crate::dom::identityhub::IdentityHub; use crate::dom::imagebitmap::ImageBitmap; use crate::dom::messageevent::MessageEvent; use crate::dom::messageport::MessagePort; @@ -325,7 +325,7 @@ pub struct GlobalScope { /// Identity Manager for WebGPU resources #[ignore_malloc_size_of = "defined in wgpu"] #[no_trace] - gpu_id_hub: Arc<Identities>, + gpu_id_hub: Arc<IdentityHub>, /// WebGPU devices gpu_devices: DomRefCell<HashMapTracedValues<WebGPUDevice, WeakRef<GPUDevice>>>, @@ -768,7 +768,7 @@ impl GlobalScope { microtask_queue: Rc<MicrotaskQueue>, is_headless: bool, user_agent: Cow<'static, str>, - gpu_id_hub: Arc<Identities>, + gpu_id_hub: Arc<IdentityHub>, inherited_secure_context: Option<bool>, ) -> Self { Self { @@ -3154,7 +3154,7 @@ impl GlobalScope { None } - pub fn wgpu_id_hub(&self) -> Arc<Identities> { + pub fn wgpu_id_hub(&self) -> Arc<IdentityHub> { self.gpu_id_hub.clone() } |