aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpuadapter.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2020-07-22 17:52:49 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2020-07-24 12:45:23 +0530
commitaff22db33ff237e0fd677671851e3919007f20ef (patch)
treeb3073acf157f99a004c53d33d7da3d839e5accd1 /components/script/dom/gpuadapter.rs
parent75abccb16bc19eb375ce73f26a0234e3d2ecbb9b (diff)
downloadservo-aff22db33ff237e0fd677671851e3919007f20ef.tar.gz
servo-aff22db33ff237e0fd677671851e3919007f20ef.zip
Implement GPURenderBundleEncoder and GPURenderBundle
Diffstat (limited to 'components/script/dom/gpuadapter.rs')
-rw-r--r--components/script/dom/gpuadapter.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/gpuadapter.rs b/components/script/dom/gpuadapter.rs
index afab6b89d09..9392f1414fa 100644
--- a/components/script/dom/gpuadapter.rs
+++ b/components/script/dom/gpuadapter.rs
@@ -103,6 +103,7 @@ impl GPUAdapterMethods for GPUAdapter {
descriptor: desc,
device_id: id,
pipeline_id,
+ label: descriptor.parent.label.as_ref().map(|s| s.to_string()),
})
.is_err()
{
@@ -119,6 +120,7 @@ impl AsyncWGPUListener for GPUAdapter {
device_id,
queue_id,
_descriptor,
+ label,
} => {
let device = GPUDevice::new(
&self.global(),
@@ -128,6 +130,7 @@ impl AsyncWGPUListener for GPUAdapter {
Heap::default(),
device_id,
queue_id,
+ label,
);
self.global().add_gpu_device(&device);
promise.resolve_native(&device);