aboutsummaryrefslogtreecommitdiffstats
path: root/components/shared/script/script_msg.rs
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2025-03-12 16:36:52 +0100
committerGitHub <noreply@github.com>2025-03-12 15:36:52 +0000
commit6f6840d63c4ff65114f28f5de6a745974faa22a7 (patch)
treeeb0cde288dbf1cd899cd012e9b5c6f38fdf1b07e /components/shared/script/script_msg.rs
parentf31043602af948c981f039c3ae63cde0c7b21533 (diff)
downloadservo-6f6840d63c4ff65114f28f5de6a745974faa22a7.tar.gz
servo-6f6840d63c4ff65114f28f5de6a745974faa22a7.zip
canvas: Do not update ImageKey during canvas layout (#35719)
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'components/shared/script/script_msg.rs')
-rw-r--r--components/shared/script/script_msg.rs3
1 files changed, 2 insertions, 1 deletions
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<u64>,
- IpcSender<(IpcSender<CanvasMsg>, CanvasId)>,
+ IpcSender<(IpcSender<CanvasMsg>, CanvasId, ImageKey)>,
),
/// Notifies the constellation that this frame has received focus.
Focus,