diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-06-14 11:05:36 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-06-14 11:05:36 +0530 |
commit | 2c95df73a4d74b24db451e5ff1d3ccc5ced10fe2 (patch) | |
tree | 5aad7af8102a6fa6624128b20b2fd3f6372ed2e6 /components/layout_2020/replaced.rs | |
parent | 71401e0855c24e4cf86a754171f0162ae08d8e55 (diff) | |
download | servo-2c95df73a4d74b24db451e5ff1d3ccc5ced10fe2.tar.gz servo-2c95df73a4d74b24db451e5ff1d3ccc5ced10fe2.zip |
Add WebGPU to Layout-2020
Diffstat (limited to 'components/layout_2020/replaced.rs')
-rw-r--r-- | components/layout_2020/replaced.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/layout_2020/replaced.rs b/components/layout_2020/replaced.rs index d10e03198ac..3cb7dd725a4 100644 --- a/components/layout_2020/replaced.rs +++ b/components/layout_2020/replaced.rs @@ -52,6 +52,7 @@ pub(crate) struct IntrinsicSizes { pub(crate) enum CanvasSource { WebGL(ImageKey), Image(Option<Arc<Mutex<IpcSender<CanvasMsg>>>>), + WebGPU(ImageKey), } impl fmt::Debug for CanvasSource { @@ -62,6 +63,7 @@ impl fmt::Debug for CanvasSource { match *self { CanvasSource::WebGL(_) => "WebGL", CanvasSource::Image(_) => "Image", + CanvasSource::WebGPU(_) => "WebGPU", } ) } @@ -210,6 +212,7 @@ impl ReplacedContent { let image_key = match canvas_info.source { CanvasSource::WebGL(image_key) => image_key, + CanvasSource::WebGPU(image_key) => image_key, CanvasSource::Image(ref ipc_renderer) => match *ipc_renderer { Some(ref ipc_renderer) => { let ipc_renderer = ipc_renderer.lock().unwrap(); |