Source code
Revision control
Copy as Markdown
Other Tools
# Reference for the test of the same name: the clip is applied directly to the
# primitive, and an extra unclipped primitive keeps it out of the slice's shared
# clips, so this always goes through the per-primitive quad-shader clip path.
---
root:
items:
- type: clip
id: 2
complex:
- rect: [40, 40, 320, 240]
radius: 30
# An extra primitive that is NOT under the rounded clip. Without it the clipped
# rect would be the only primitive in the slice, so its clip chain would be the
# slice's shared clip chain and the rounded clip would be hoisted into a
# compositor clip -- making this reference take the same fast path as the test
# instead of the quad-shader path it is supposed to provide. White on the white
# background, so it does not change the output.
- type: rect
bounds: [0, 0, 400, 400]
color: white
- type: rect
bounds: [0, 0, 400, 400]
color: green
clip-chain: [2]