Source code

Revision control

Copy as Markdown

Other Tools

# Since there is no clip-chain shared between the two prims, the rounded
# clip will be applied to the primitive, causing allocation of a mask surface.
# The second prim is clipped out to make it match the reference.
---
root:
items:
- type: clip
id: 2
complex:
- rect: [50, 50, 300, 300]
radius: 32
- type: rect
bounds: 50 50 300 300
color: red
checkerboard-background: true
clip-chain: [2]
- type: rect
bounds: 50 50 300 300
color: green
checkerboard-background: true
clip-chain: [2]