gfx/wr/wrench/reftests/clip/stacking-context-clip.yaml
author Kartikaya Gupta <kgupta@mozilla.com>
Thu, 22 Nov 2018 21:47:48 +0000
changeset 447760 89caaea53d18aaf2d4b90b98a2f989a8cdc7062b
permissions -rw-r--r--
Bug 1507524 - Move webrender to gfx/wr. r=jrmuizel This patch copies the webrender repository contents into gfx/wr. The existing files from gfx/webrender, gfx/webrender_api, and gfx/wrench are moved, and the remaining files are added. The revision being used is the same as before. In addition, the mozilla-central top-level Cargo.toml and the gfx/webrender_bindings/Cargo.toml files are updated to reflect the new structure. Differential Revision: https://phabricator.services.mozilla.com/D12059

---
root:
  items:
  - type: clip
    id: 2
    bounds: [0, 0, 100, 100]
    complex:
      - rect: [0, 0, 100, 100]
        radius: {
          top-left: 50,
          top-right: 50,
          bottom-left: 50,
          bottom-right: 50,
        }
  - type: stacking-context
    bounds: [0, 0, 100, 100]
    clip-node: 2
    items:
      - type: rect
        bounds: [ 0, 0, 100, 100 ]
        color: [0, 255, 0]
  # The same test, but this time with hue rotation, which means that the stacking
  # context is rendered to an intermediate surface first. Unfortunately, we cannot
  # use a rounded clip here because we want to avoid subpixel differences and avoid
  # relying on a PNG reference image.
  - type: clip
    id: 3
    bounds: [120, 0, 50, 50]
  - type: stacking-context
    bounds: [100, 0, 100, 100]
    filters: hue-rotate(90)
    clip-node: 3
    items:
      - type: rect
        bounds: [ 0, 0, 100, 100 ]
        color: [0, 255, 0]