snapshot-offscreen-02.yaml (1198B)
1 # This test exercises offscreen pipelines (See Transaction::render_offscreen). 2 # Two offscreen pipelines are submitted, both producing snapshots. Only one 3 # of the snapshot is used, no red should be visible in the final output. 4 --- 5 pipelines: 6 # The first offscreen pipeline will be rendered, but its output won't be used. 7 # The test only sanity-checks that this doesn't affect the test output. 8 - id: [0, 1] 9 offscreen: true 10 items: 11 - type: stacking-context 12 bounds: [0, 0, 200, 200] 13 snapshot: 14 name: "snap0" 15 area: [0, 0, 200, 200] 16 items: 17 - type: rect 18 bounds: [ 0, 0, 200, 200 ] 19 color: [255, 0, 0] 20 - id: [0, 2] 21 offscreen: true 22 items: 23 # This rect should not be visible, since it isn't part of a snapshot. 24 - type: rect 25 bounds: [-200, -200, 20000, 20000 ] 26 color: [255, 0, 0] 27 - type: stacking-context 28 bounds: [0, 0, 100, 100] 29 snapshot: 30 name: "snap1" 31 area: [0, 0, 100, 100] 32 items: 33 - type: rect 34 bounds: [ 0, 0, 100, 100 ] 35 color: [0, 0, 255] 36 root: 37 items: 38 - type: stacking-context 39 bounds: [0, 0, 100, 100] 40 items: 41 - image: snapshot(snap1) 42 bounds: [0, 0, 100, 100]