diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-05-15 00:03:07 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-05-15 01:15:01 +0530 |
commit | e5065c7eb291a83ba489bc41b6c0241f39ed1c0a (patch) | |
tree | 8b207f81a31195abb29683ba4118c69537bf1bd6 /components/script/dom/gpu.rs | |
parent | 6c506ba2608c082a6c3c908b5e72f1cb5ea8a082 (diff) | |
download | servo-e5065c7eb291a83ba489bc41b6c0241f39ed1c0a.tar.gz servo-e5065c7eb291a83ba489bc41b6c0241f39ed1c0a.zip |
Share single gpu_id_hub among all threads in a process
Diffstat (limited to 'components/script/dom/gpu.rs')
-rw-r--r-- | components/script/dom/gpu.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/gpu.rs b/components/script/dom/gpu.rs index 3980c2a3bd2..358665c3a10 100644 --- a/components/script/dom/gpu.rs +++ b/components/script/dom/gpu.rs @@ -115,7 +115,7 @@ impl GPUMethods for GPU { }, None => wgpu::instance::PowerPreference::Default, }; - let ids = global.wgpu_id_hub().create_adapter_ids(); + let ids = global.wgpu_id_hub().lock().create_adapter_ids(); let script_to_constellation_chan = global.script_to_constellation_chan(); if script_to_constellation_chan |