diff options
author | Nicholas Nethercote <nnethercote@mozilla.com> | 2014-06-25 23:30:07 -0700 |
---|---|---|
committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2014-06-26 16:41:40 -0700 |
commit | 56dd5b943eb9652e160d6701c67eb1ff44eeee2a (patch) | |
tree | fb22c16e03bde292755d52b94579fd1f46b6b27e /src/components/main/layout/parallel.rs | |
parent | fad919ccf752099ee748d1b4f5dba41028800c8c (diff) | |
download | servo-56dd5b943eb9652e160d6701c67eb1ff44eeee2a.tar.gz servo-56dd5b943eb9652e160d6701c67eb1ff44eeee2a.zip |
Rename |Profiler| as |TimeProfiler|.
And likewise for |ProfilerChan|, |profiler_chan|, and so on. This
contrasts nicely with the newly added |MemoryProfiler|.
Diffstat (limited to 'src/components/main/layout/parallel.rs')
-rw-r--r-- | src/components/main/layout/parallel.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/main/layout/parallel.rs b/src/components/main/layout/parallel.rs index a65dca00982..9d46370f024 100644 --- a/src/components/main/layout/parallel.rs +++ b/src/components/main/layout/parallel.rs @@ -20,7 +20,7 @@ use layout::wrapper::{layout_node_to_unsafe_layout_node, layout_node_from_unsafe use layout::wrapper::{ThreadSafeLayoutNode, UnsafeLayoutNode}; use gfx::display_list::OpaqueNode; -use servo_util::time::{ProfilerChan, profile}; +use servo_util::time::{TimeProfilerChan, profile}; use servo_util::time; use servo_util::workqueue::{WorkQueue, WorkUnit, WorkerProxy}; use std::mem; @@ -526,14 +526,14 @@ pub fn recalc_style_for_subtree(root_node: &LayoutNode, } pub fn traverse_flow_tree_preorder(root: &mut FlowRef, - profiler_chan: ProfilerChan, + time_profiler_chan: TimeProfilerChan, layout_context: &mut LayoutContext, queue: &mut WorkQueue<*mut LayoutContext,UnsafeFlow>) { unsafe { queue.data = mem::transmute(layout_context) } - profile(time::LayoutParallelWarmupCategory, profiler_chan, || { + profile(time::LayoutParallelWarmupCategory, time_profiler_chan, || { queue.push(WorkUnit { fun: assign_widths, data: mut_owned_flow_to_unsafe_flow(root), @@ -546,14 +546,14 @@ pub fn traverse_flow_tree_preorder(root: &mut FlowRef, } pub fn build_display_list_for_subtree(root: &mut FlowRef, - profiler_chan: ProfilerChan, + time_profiler_chan: TimeProfilerChan, layout_context: &mut LayoutContext, queue: &mut WorkQueue<*mut LayoutContext,UnsafeFlow>) { unsafe { queue.data = mem::transmute(layout_context) } - profile(time::LayoutParallelWarmupCategory, profiler_chan, || { + profile(time::LayoutParallelWarmupCategory, time_profiler_chan, || { queue.push(WorkUnit { fun: compute_absolute_position, data: mut_owned_flow_to_unsafe_flow(root), |