summaryrefslogtreecommitdiffstats
path: root/gfx/wr/wrench/benchmarks/clip-clear.yaml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gfx/wr/wrench/benchmarks/clip-clear.yaml48
1 files changed, 48 insertions, 0 deletions
diff --git a/gfx/wr/wrench/benchmarks/clip-clear.yaml b/gfx/wr/wrench/benchmarks/clip-clear.yaml
new file mode 100644
index 0000000000..f23440a3f1
--- /dev/null
+++ b/gfx/wr/wrench/benchmarks/clip-clear.yaml
@@ -0,0 +1,48 @@
+# Benchmark to test the cost of clears on a clip mask target that
+# is large but has low usage.
+---
+root:
+ items:
+ -
+ bounds: 0 0 1000 1000
+ type: stacking-context
+ items:
+ - type: clip
+ bounds: [50, 50, 300, 300]
+ complex:
+ - rect: [50, 50, 300, 300]
+ radius: 50
+ items:
+ - type: rect
+ bounds: 50 50 300 300
+ color: red
+ - type: rect
+ bounds: 50 50 300 300
+ color: red
+ - type: rect
+ bounds: 50 50 300 300
+ color: red
+ - type: rect
+ bounds: 50 50 300 300
+ color: red
+ - type: rect
+ bounds: 50 50 300 300
+ color: red
+ - type: rect
+ bounds: 50 50 300 300
+ color: red
+ - type: rect
+ bounds: 50 50 300 300
+ color: red
+ - type: rect
+ bounds: 50 50 300 300
+ color: red
+ - type: rect
+ bounds: 50 50 300 300
+ color: red
+ - type: rect
+ bounds: 50 50 300 300
+ color: red
+ - type: rect
+ bounds: 50 50 300 300
+ color: red