aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/identityhub.rs
diff options
context:
space:
mode:
authorIstvan Miklos <istvan.miklos@h-lab.eu>2019-11-12 12:56:57 +0100
committerIstvan Miklos <istvan.miklos@h-lab.eu>2019-12-05 11:50:33 +0100
commitb15d2bb7d70870e26e1834099bf5fdcdcbb8d673 (patch)
tree80f2ab39a3afe7c38ec4934070cff03642e80521 /components/script/dom/identityhub.rs
parent7aa68c8fe7ca0865a7323ab1e5b9526efa588ca2 (diff)
downloadservo-b15d2bb7d70870e26e1834099bf5fdcdcbb8d673.tar.gz
servo-b15d2bb7d70870e26e1834099bf5fdcdcbb8d673.zip
Initial implementation of GPUDevice for WebGPU
Added the WebIDL bindigs for GPUDevice, GPUObjectDescriptorBase, GPUDeviceDescriptor, GPUObjectBase Implemented the `requestDevice` function of `GPUAdapter`
Diffstat (limited to 'components/script/dom/identityhub.rs')
-rw-r--r--components/script/dom/identityhub.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/identityhub.rs b/components/script/dom/identityhub.rs
index 489eaacc78d..6c79a3c5f46 100644
--- a/components/script/dom/identityhub.rs
+++ b/components/script/dom/identityhub.rs
@@ -44,4 +44,8 @@ impl Identities {
pub fn create_adapter_id(&mut self) -> AdapterId {
self.hub.adapters.alloc()
}
+
+ pub fn create_device_id(&mut self) -> DeviceId {
+ self.hub.devices.alloc()
+ }
}