aboutsummaryrefslogtreecommitdiffstats
path: root/components/shared/webgpu
diff options
context:
space:
mode:
Diffstat (limited to 'components/shared/webgpu')
-rw-r--r--components/shared/webgpu/Cargo.toml1
-rw-r--r--components/shared/webgpu/messages/recv.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/components/shared/webgpu/Cargo.toml b/components/shared/webgpu/Cargo.toml
index 0a4aa4e7ff3..04efea0cb9c 100644
--- a/components/shared/webgpu/Cargo.toml
+++ b/components/shared/webgpu/Cargo.toml
@@ -20,3 +20,4 @@ serde = { workspace = true }
webrender_api = { workspace = true }
wgpu-core = { workspace = true, features = ["serde", "wgsl"] }
wgpu-types = { workspace = true }
+snapshot = { workspace = true }
diff --git a/components/shared/webgpu/messages/recv.rs b/components/shared/webgpu/messages/recv.rs
index 47c32437e45..4a30177cf0a 100644
--- a/components/shared/webgpu/messages/recv.rs
+++ b/components/shared/webgpu/messages/recv.rs
@@ -9,6 +9,7 @@ use arrayvec::ArrayVec;
use base::id::PipelineId;
use ipc_channel::ipc::{IpcSender, IpcSharedMemory};
use serde::{Deserialize, Serialize};
+use snapshot::IpcSnapshot;
use webrender_api::ImageKey;
use webrender_api::units::DeviceIntSize;
use wgpu_core::Label;
@@ -165,7 +166,7 @@ pub enum WebGPURequest {
/// Obtains image from latest presentation buffer (same as wr update)
GetImage {
context_id: WebGPUContextId,
- sender: IpcSender<IpcSharedMemory>,
+ sender: IpcSender<IpcSnapshot>,
},
ValidateTextureDescriptor {
device_id: DeviceId,