diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-01-04 12:39:47 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-01-04 12:39:47 -0700 |
commit | ba8cf6b0e6145265f9472d4855f078d8b5943fe7 (patch) | |
tree | 4ce7adac90149382d40392c2019c17aa7af76d35 /components/util/time.rs | |
parent | 2e17cae5d080db72d5f89733d19e0304857cfd34 (diff) | |
parent | 79d052797823a7c26772bda84b8afeff92825306 (diff) | |
download | servo-ba8cf6b0e6145265f9472d4855f078d8b5943fe7.tar.gz servo-ba8cf6b0e6145265f9472d4855f078d8b5943fe7.zip |
auto merge of #4542 : servo/servo/pre-rustup_20141221, r=saneyuki
In particular, this contains changes to qualify enums where rust will require it, and to stop using some features that will be removed.
Diffstat (limited to 'components/util/time.rs')
-rw-r--r-- | components/util/time.rs | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/components/util/time.rs b/components/util/time.rs index c4a994bc832..96d037c520a 100644 --- a/components/util/time.rs +++ b/components/util/time.rs @@ -71,21 +71,21 @@ pub enum TimeProfilerMsg { #[repr(u32)] #[deriving(PartialEq, Clone, PartialOrd, Eq, Ord)] pub enum TimeProfilerCategory { - CompositingCategory, - LayoutPerformCategory, - LayoutStyleRecalcCategory, + Compositing, + LayoutPerform, + LayoutStyleRecalc, LayoutRestyleDamagePropagation, LayoutNonIncrementalReset, - LayoutSelectorMatchCategory, - LayoutTreeBuilderCategory, - LayoutDamagePropagateCategory, - LayoutMainCategory, - LayoutParallelWarmupCategory, - LayoutShapingCategory, - LayoutDispListBuildCategory, - PaintingPerTileCategory, - PaintingPrepBuffCategory, - PaintingCategory, + LayoutSelectorMatch, + LayoutTreeBuilder, + LayoutDamagePropagate, + LayoutMain, + LayoutParallelWarmup, + LayoutShaping, + LayoutDispListBuild, + PaintingPerTile, + PaintingPrepBuff, + Painting, } impl Formatable for TimeProfilerCategory { @@ -93,36 +93,36 @@ impl Formatable for TimeProfilerCategory { // and should be printed to indicate this fn format(&self) -> String { let padding = match *self { - TimeProfilerCategory::LayoutStyleRecalcCategory | + TimeProfilerCategory::LayoutStyleRecalc | TimeProfilerCategory::LayoutRestyleDamagePropagation | TimeProfilerCategory::LayoutNonIncrementalReset | - TimeProfilerCategory::LayoutMainCategory | - TimeProfilerCategory::LayoutDispListBuildCategory | - TimeProfilerCategory::LayoutShapingCategory | - TimeProfilerCategory::LayoutDamagePropagateCategory | - TimeProfilerCategory::PaintingPerTileCategory | - TimeProfilerCategory::PaintingPrepBuffCategory => "+ ", - TimeProfilerCategory::LayoutParallelWarmupCategory | - TimeProfilerCategory::LayoutSelectorMatchCategory | - TimeProfilerCategory::LayoutTreeBuilderCategory => "| + ", + TimeProfilerCategory::LayoutMain | + TimeProfilerCategory::LayoutDispListBuild | + TimeProfilerCategory::LayoutShaping | + TimeProfilerCategory::LayoutDamagePropagate | + TimeProfilerCategory::PaintingPerTile | + TimeProfilerCategory::PaintingPrepBuff => "+ ", + TimeProfilerCategory::LayoutParallelWarmup | + TimeProfilerCategory::LayoutSelectorMatch | + TimeProfilerCategory::LayoutTreeBuilder => "| + ", _ => "" }; let name = match *self { - TimeProfilerCategory::CompositingCategory => "Compositing", - TimeProfilerCategory::LayoutPerformCategory => "Layout", - TimeProfilerCategory::LayoutStyleRecalcCategory => "Style Recalc", + TimeProfilerCategory::Compositing => "Compositing", + TimeProfilerCategory::LayoutPerform => "Layout", + TimeProfilerCategory::LayoutStyleRecalc => "Style Recalc", TimeProfilerCategory::LayoutRestyleDamagePropagation => "Restyle Damage Propagation", TimeProfilerCategory::LayoutNonIncrementalReset => "Non-incremental reset (temporary)", - TimeProfilerCategory::LayoutSelectorMatchCategory => "Selector Matching", - TimeProfilerCategory::LayoutTreeBuilderCategory => "Tree Building", - TimeProfilerCategory::LayoutDamagePropagateCategory => "Damage Propagation", - TimeProfilerCategory::LayoutMainCategory => "Primary Layout Pass", - TimeProfilerCategory::LayoutParallelWarmupCategory => "Parallel Warmup", - TimeProfilerCategory::LayoutShapingCategory => "Shaping", - TimeProfilerCategory::LayoutDispListBuildCategory => "Display List Construction", - TimeProfilerCategory::PaintingPerTileCategory => "Painting Per Tile", - TimeProfilerCategory::PaintingPrepBuffCategory => "Buffer Prep", - TimeProfilerCategory::PaintingCategory => "Painting", + TimeProfilerCategory::LayoutSelectorMatch => "Selector Matching", + TimeProfilerCategory::LayoutTreeBuilder => "Tree Building", + TimeProfilerCategory::LayoutDamagePropagate => "Damage Propagation", + TimeProfilerCategory::LayoutMain => "Primary Layout Pass", + TimeProfilerCategory::LayoutParallelWarmup => "Parallel Warmup", + TimeProfilerCategory::LayoutShaping => "Shaping", + TimeProfilerCategory::LayoutDispListBuild => "Display List Construction", + TimeProfilerCategory::PaintingPerTile => "Painting Per Tile", + TimeProfilerCategory::PaintingPrepBuff => "Buffer Prep", + TimeProfilerCategory::Painting => "Painting", }; format!("{}{}", padding, name) } |