mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
gfx: Paint in parallel in CPU painting mode
This commit is contained in:
parent
f5e8df9dac
commit
55222336b5
4 changed files with 316 additions and 189 deletions
|
@ -77,9 +77,9 @@ pub enum TimeProfilerCategory {
|
|||
LayoutParallelWarmupCategory,
|
||||
LayoutShapingCategory,
|
||||
LayoutDispListBuildCategory,
|
||||
RenderingDrawingCategory,
|
||||
RenderingPrepBuffCategory,
|
||||
RenderingCategory,
|
||||
PaintingPerTileCategory,
|
||||
PaintingPrepBuffCategory,
|
||||
PaintingCategory,
|
||||
}
|
||||
|
||||
impl Formatable for TimeProfilerCategory {
|
||||
|
@ -93,7 +93,9 @@ impl Formatable for TimeProfilerCategory {
|
|||
LayoutMainCategory |
|
||||
LayoutDispListBuildCategory |
|
||||
LayoutShapingCategory |
|
||||
LayoutDamagePropagateCategory => "+ ",
|
||||
LayoutDamagePropagateCategory |
|
||||
PaintingPerTileCategory |
|
||||
PaintingPrepBuffCategory => "+ ",
|
||||
LayoutParallelWarmupCategory |
|
||||
LayoutSelectorMatchCategory |
|
||||
LayoutTreeBuilderCategory => "| + ",
|
||||
|
@ -112,9 +114,9 @@ impl Formatable for TimeProfilerCategory {
|
|||
LayoutParallelWarmupCategory => "Parallel Warmup",
|
||||
LayoutShapingCategory => "Shaping",
|
||||
LayoutDispListBuildCategory => "Display List Construction",
|
||||
RenderingDrawingCategory => "Draw",
|
||||
RenderingPrepBuffCategory => "Buffer Prep",
|
||||
RenderingCategory => "Rendering",
|
||||
PaintingPerTileCategory => "Painting Per Tile",
|
||||
PaintingPrepBuffCategory => "Buffer Prep",
|
||||
PaintingCategory => "Painting",
|
||||
};
|
||||
format!("{:s}{}", padding, name)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue