aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
authorPhilipp Albrecht <palbrecht@mailbox.org>2019-03-25 22:39:41 +0100
committerpylbrecht <palbrecht@mailbox.org>2019-04-13 07:42:07 +0200
commit858011c5132d647c0718a2801279222652004a3b (patch)
treedabb9c3c2f218e1f37728896493f9fd204f5f461 /components/script_traits/lib.rs
parenta74f5222db7f7f39e426cd0b8836f5b806730ef7 (diff)
downloadservo-858011c5132d647c0718a2801279222652004a3b.tar.gz
servo-858011c5132d647c0718a2801279222652004a3b.zip
Measure layout queries blocked by ongoing layout
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r--components/script_traits/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index ea09d5a3f18..057f3721b0f 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -50,6 +50,7 @@ use servo_url::ImmutableOrigin;
use servo_url::ServoUrl;
use std::collections::HashMap;
use std::fmt;
+use std::sync::atomic::AtomicBool;
use std::sync::Arc;
use std::time::Duration;
use style_traits::CSSPixel;
@@ -600,6 +601,8 @@ pub struct InitialScriptState {
pub webrender_document: DocumentId,
/// FIXME(victor): The Webrender API sender in this constellation's pipeline
pub webrender_api_sender: RenderApiSender,
+ /// Flag to indicate if the layout thread is busy handling a request.
+ pub layout_is_busy: Arc<AtomicBool>,
}
/// This trait allows creating a `ScriptThread` without depending on the `script`