gfx/wr/wrench/reftests/filters/filter-color-matrix.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: stacking-context
      bounds: [0, 0, 120, 120]
      items:
        - type: rect
          bounds: [0, 0, 120, 120]
          color: [0, 0, 0, 1]
        - type: stacking-context
          bounds: [10, 10, 50, 50]
          filters: color-matrix( 0.393, 0.686, 0.534, 0,
                                 0.189, 0.168, 0.131, 0,
                                 0.349, 0.272, 0, 0,
                                 0, 0, 0, 1,
                                 0, 0, 0, 0 )
          items:
            - type: rect
              bounds: [0, 0, 50, 50]
              color: [255, 0, 0, 1]
        - type: stacking-context
          bounds: [10, 60, 50, 50]
          filters: color-matrix( -1, 0, 0, 0,
                                 0, -1, 0, 0,
                                 0, 0, -1, 0,
                                 0, 0, 0, 1,
                                 1, 1, 1, 0 )
          items:
            - type: rect
              bounds: [0, 0, 50, 50]
              color: [0, 255, 0, 1]
        - type: stacking-context
          bounds: [60, 10, 50, 50]
          filters: color-matrix( 0, 0, 1, 0,
                                 0, 1, 0, 0,
                                 1, 0, 0, 0,
                                 0, 0, 0, 1,
                                 0, 0, 0, 0 )
          items:
            - type: rect
              bounds: [0, 0, 50, 50]
              color: [0, 0, 255, 1]