From 4fd9fea7a64420265dfe482b577ad0fc74d2a817 Mon Sep 17 00:00:00 2001 From: pylbrecht Date: Wed, 17 Apr 2019 17:23:17 +0200 Subject: [PATCH] fixup! Measure layout queries blocked by ongoing layout --- components/layout_thread/lib.rs | 2 +- components/profile_traits/time.rs | 3 +-- components/script/script_thread.rs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index 4ab5c653ea8..839fac79006 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -871,7 +871,7 @@ impl LayoutThread { self.webrender_api.clone_sender(), self.webrender_document, info.paint_time_metrics, - self.busy.clone(), + info.layout_is_busy, ); } diff --git a/components/profile_traits/time.rs b/components/profile_traits/time.rs index d7996edb1d7..f6ce63bc426 100644 --- a/components/profile_traits/time.rs +++ b/components/profile_traits/time.rs @@ -47,8 +47,7 @@ pub enum ProfilerMsg { /// Message used to force print the profiling metrics Print, - // TODO pylbrecht - // write meaningful docstring + /// Report a layout query that could not be processed immediately for a particular URL. BlockedLayoutQuery(String), /// Tells the profiler to shut down. diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index b55d57febb6..20505a3fd7c 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -203,7 +203,7 @@ struct InProgressLoad { navigation_start_precise: u64, /// For cancelling the fetch canceller: FetchCanceller, - /// Flag to indicate if the layout thread is busy handling a request. + /// Flag for sharing with the layout thread that is not yet created. layout_is_busy: Arc, }