aboutsummaryrefslogtreecommitdiffstats
path: root/components/metrics/lib.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2025-01-30 23:46:17 +0100
committerGitHub <noreply@github.com>2025-01-30 22:46:17 +0000
commitad07db0b0c10a17623d13f34529b54bc49ba7a21 (patch)
treead14b5b6e95d75b7870ea4f530f7c452b3ddb196 /components/metrics/lib.rs
parent006ec58598cd461aa4cf12023dc5b5b9a35c29a8 (diff)
downloadservo-ad07db0b0c10a17623d13f34529b54bc49ba7a21.tar.gz
servo-ad07db0b0c10a17623d13f34529b54bc49ba7a21.zip
script_traits: Rename `ConstellationControlMsg` to `ScriptThreadMessage` (#35226)
At some point in the past this message was only sent from the `Constellation` to `script`, but nowadays this is sent from various parts of servo to the `ScriptThread`, so this is a better name. In particular, the current name makes it seeem like this message controls the `Constellation`, which it does not. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/metrics/lib.rs')
-rw-r--r--components/metrics/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/metrics/lib.rs b/components/metrics/lib.rs
index 0ac3021c52b..222b0cfa000 100644
--- a/components/metrics/lib.rs
+++ b/components/metrics/lib.rs
@@ -14,7 +14,7 @@ use ipc_channel::ipc::IpcSender;
use log::warn;
use malloc_size_of_derive::MallocSizeOf;
use profile_traits::time::{send_profile_data, ProfilerCategory, ProfilerChan, TimerMetadata};
-use script_traits::{ConstellationControlMsg, LayoutMsg, ProgressiveWebMetricType};
+use script_traits::{LayoutMsg, ProgressiveWebMetricType, ScriptThreadMessage};
use servo_config::opts;
use servo_url::ServoUrl;
@@ -258,7 +258,7 @@ pub struct PaintTimeMetrics {
pipeline_id: PipelineId,
time_profiler_chan: ProfilerChan,
constellation_chan: IpcSender<LayoutMsg>,
- script_chan: IpcSender<ConstellationControlMsg>,
+ script_chan: IpcSender<ScriptThreadMessage>,
url: ServoUrl,
}
@@ -267,7 +267,7 @@ impl PaintTimeMetrics {
pipeline_id: PipelineId,
time_profiler_chan: ProfilerChan,
constellation_chan: IpcSender<LayoutMsg>,
- script_chan: IpcSender<ConstellationControlMsg>,
+ script_chan: IpcSender<ScriptThreadMessage>,
url: ServoUrl,
navigation_start: CrossProcessInstant,
) -> PaintTimeMetrics {
@@ -369,7 +369,7 @@ impl ProgressiveWebMetric for PaintTimeMetrics {
name: ProgressiveWebMetricType,
time: CrossProcessInstant,
) {
- let msg = ConstellationControlMsg::PaintMetric(self.pipeline_id, name, time);
+ let msg = ScriptThreadMessage::PaintMetric(self.pipeline_id, name, time);
if let Err(e) = self.script_chan.send(msg) {
warn!("Sending metric to script thread failed ({}).", e);
}