aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2025-03-21 15:55:00 +0100
committerGitHub <noreply@github.com>2025-03-21 14:55:00 +0000
commit54244797688fbeec85baac6fcfc9b71d555bf72c (patch)
tree5e9914cce8a83a8d8b171da0ead4d6f1cf725ca5 /python
parent1f232eb17c031fe18035a17249de99b2af6fa53e (diff)
downloadservo-54244797688fbeec85baac6fcfc9b71d555bf72c.tar.gz
servo-54244797688fbeec85baac6fcfc9b71d555bf72c.zip
metrics: Simplify `ProgressiveWebMetrics` (#35985)
Simply how `ProgressiveWebMetrics` works: 1. Keep only a single struct instead of one in layout and one script that both implement the `ProgressiveWebMetrics` trait. Since layout and script are the same thread these can now just be a single `ProgressiveWebMetrics` struct stored in script. 2. Have the compositor be responsible for informing the Constellation (which informs the ScripThread) about paint metrics. This makes communication flow one way and removes one dependency between the compositor and script (of two). 3. All units tests are moved into the `metrics` crate itself since there is only one struct there now. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'python')
-rw-r--r--python/servo/testing_commands.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 4f9b573182f..fe408fb5442 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -166,6 +166,7 @@ class MachCommands(CommandBase):
"hyper_serde",
"layout_2020",
"libservo",
+ "metrics",
"net",
"net_traits",
"pixels",