WebGPU: Use GenericChannel (#42032)

Switching WebGPU component to use GenericChannel.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>

Testing: Compilation is the test.

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
Narfinger
2026-01-21 06:59:18 +01:00
committed by GitHub
parent 6a7be2868f
commit 71cc3b2382
14 changed files with 43 additions and 55 deletions

View File

@@ -1850,8 +1850,7 @@ impl ScriptThread {
},
#[cfg(feature = "webgpu")]
ScriptThreadMessage::SetWebGPUPort(port) => {
*self.receivers.webgpu_receiver.borrow_mut() =
ROUTER.route_ipc_receiver_to_new_crossbeam_receiver(port);
*self.receivers.webgpu_receiver.borrow_mut() = port.route_preserving_errors();
},
ScriptThreadMessage::TickAllAnimations(_webviews) => {
self.set_needs_rendering_update();