From 6f6840d63c4ff65114f28f5de6a745974faa22a7 Mon Sep 17 00:00:00 2001 From: Samson <16504129+sagudev@users.noreply.github.com> Date: Wed, 12 Mar 2025 16:36:52 +0100 Subject: canvas: Do not update ImageKey during canvas layout (#35719) Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --- components/shared/script/script_msg.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components/shared/script/script_msg.rs') diff --git a/components/shared/script/script_msg.rs b/components/shared/script/script_msg.rs index 90e3bb8e6fd..7af7272c715 100644 --- a/components/shared/script/script_msg.rs +++ b/components/shared/script/script_msg.rs @@ -25,6 +25,7 @@ use servo_url::{ImmutableOrigin, ServoUrl}; use style_traits::CSSPixel; #[cfg(feature = "webgpu")] use webgpu::{WebGPU, WebGPUResponse, wgc}; +use webrender_api::ImageKey; use crate::mem::MemoryReportResult; use crate::{ @@ -144,7 +145,7 @@ pub enum ScriptMsg { /// 2D canvases may use the GPU and we don't want to give untrusted content access to the GPU.) CreateCanvasPaintThread( UntypedSize2D, - IpcSender<(IpcSender, CanvasId)>, + IpcSender<(IpcSender, CanvasId, ImageKey)>, ), /// Notifies the constellation that this frame has received focus. Focus, -- cgit v1.2.3