aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpudevice.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2020-06-04 19:28:25 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2020-06-13 17:46:12 +0530
commit71401e0855c24e4cf86a754171f0162ae08d8e55 (patch)
tree34587c934aa127849ed943c44ec79f71ee904935 /components/script/dom/gpudevice.rs
parent73760ea59434971d24e6aac7e5fe3c79c1ba5bf6 (diff)
downloadservo-71401e0855c24e4cf86a754171f0162ae08d8e55.tar.gz
servo-71401e0855c24e4cf86a754171f0162ae08d8e55.zip
Implement GPUSwapChain and GPUCanvasContext and interface with Webrender
Diffstat (limited to 'components/script/dom/gpudevice.rs')
-rw-r--r--components/script/dom/gpudevice.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/gpudevice.rs b/components/script/dom/gpudevice.rs
index e8720bf2189..fbbfa541761 100644
--- a/components/script/dom/gpudevice.rs
+++ b/components/script/dom/gpudevice.rs
@@ -118,6 +118,10 @@ impl GPUDevice {
}
impl GPUDevice {
+ pub fn id(&self) -> webgpu::WebGPUDevice {
+ self.device
+ }
+
fn validate_buffer_descriptor(
&self,
descriptor: &GPUBufferDescriptor,