aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2017-07-26 20:24:42 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2017-08-22 14:36:06 +0200
commit1b123400eb70fa4710f21caab8d716396beacfb0 (patch)
tree0877501cf09f0f210b6248bd53c82bdf35b6a665 /components/script/script_thread.rs
parent1059ef4fdeb5c76102c3da22293d836942740033 (diff)
downloadservo-1b123400eb70fa4710f21caab8d716396beacfb0.tar.gz
servo-1b123400eb70fa4710f21caab8d716396beacfb0.zip
Wait for actual paint before setting paint related metrics
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 85874ece2ca..d4911627a6f 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -1480,7 +1480,9 @@ impl ScriptThread {
image_cache: self.image_cache.clone(),
content_process_shutdown_chan: content_process_shutdown_chan,
layout_threads: layout_threads,
- paint_time_metrics: PaintTimeMetrics::new(self.time_profiler_chan.clone()),
+ paint_time_metrics: PaintTimeMetrics::new(new_pipeline_id,
+ self.time_profiler_chan.clone(),
+ self.layout_to_constellation_chan.clone()),
});
// Pick a layout thread, any layout thread