Bug 1505871. Add a wrench reftest.
authorTimothy Nikkel <tnikkel@gmail.com>
Tue, 26 Feb 2019 00:16:37 -0600
changeset 519016 44192297e3ae55473fbe669a681f937191a54b81
parent 519015 30f9e207c3d4dd83247792c3806668e09273cf36
child 519017 0e6973ba9fe579d79bd2845fabb5e17179b33af7
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1505871
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1505871. Add a wrench reftest.
gfx/wr/wrench/reftests/filters/filter-component-transfer-ref.yaml
gfx/wr/wrench/reftests/filters/filter-component-transfer.yaml
gfx/wr/wrench/reftests/filters/reftest.list
new file mode 100644
--- /dev/null
+++ b/gfx/wr/wrench/reftests/filters/filter-component-transfer-ref.yaml
@@ -0,0 +1,21 @@
+---
+root:
+  items:
+    - type: stacking-context
+      bounds: [0, 0, 50, 250]
+      items:
+        - type: rect
+          bounds: [0, 0, 50, 50]
+          color: [255, 0, 255, 1]
+        - type: rect
+          bounds: [0, 50, 50, 50]
+          color: [0, 255, 141, 1]
+        - type: rect
+          bounds: [0, 100, 50, 50]
+          color: [255, 255, 0, 1]
+        - type: rect
+          bounds: [0, 150, 50, 50]
+          color: [191, 128, 128, 1]
+        - type: rect
+          bounds: [0, 200, 50, 50]
+          color: [0, 255, 24, 1]
new file mode 100644
--- /dev/null
+++ b/gfx/wr/wrench/reftests/filters/filter-component-transfer.yaml
@@ -0,0 +1,118 @@
+---
+root:
+  items:
+    - type: stacking-context
+      bounds: [0, 0, 50, 250]
+      items:
+        - type: stacking-context
+          bounds: [0, 0, 50, 50]
+          filters:
+            - component-transfer
+          filter-datas:
+            - - - Identity
+                - Identity
+                - Identity
+                - Identity
+              - []
+              - []
+              - []
+              - []
+          items:
+            - type: rect
+              bounds: [0, 0, 50, 50]
+              color: [255, 0, 255, 1]
+        - type: stacking-context
+          bounds: [0, 50, 50, 50]
+          filters:
+            - component-transfer
+          filter-datas:
+            - - - Table
+                - Table
+                - Table
+                - Identity
+              - - "1"
+                - "1"
+                - "0"
+                - "0"
+              - - "0"
+                - "0"
+                - "1"
+                - "1"
+              - - "0"
+                - "1"
+                - "1"
+                - "0"
+              - []
+          items:
+            - type: rect
+              bounds: [0, 0, 50, 50]
+              color: [173, 255, 47, 1]
+        - type: stacking-context
+          bounds: [0, 100, 50, 50]
+          filters:
+            - component-transfer
+          filter-datas:
+            - - - Discrete
+                - Discrete
+                - Discrete
+                - Identity
+              - - "1"
+                - "1"
+                - "0"
+                - "0"
+              - - "0"
+                - "0"
+                - "1"
+                - "1"
+              - - "0"
+                - "1"
+                - "1"
+                - "0"
+              - []
+          items:
+            - type: rect
+              bounds: [0, 0, 50, 50]
+              color: [0, 255, 255, 1]
+        - type: stacking-context
+          bounds: [0, 150, 50, 50]
+          filters:
+            - component-transfer
+          filter-datas:
+            - - - Linear
+                - Linear
+                - Linear
+                - Identity
+              - - "0.5"
+                - "0.25"
+              - - "0.5"
+                - "0"
+              - - "0.5"
+                - "0.5"
+              - []
+          items:
+            - type: rect
+              bounds: [0, 0, 50, 50]
+              color: [255, 255, 0, 1]
+        - type: stacking-context
+          bounds: [0, 200, 50, 50]
+          filters:
+            - component-transfer
+          filter-datas:
+            - - - Gamma
+                - Gamma
+                - Gamma
+                - Identity
+              - - "2"
+                - "5"
+                - "-1"
+              - - "2"
+                - "3"
+                - "0"
+              - - "2"
+                - "1"
+                - "-1.75"
+              - []
+          items:
+            - type: rect
+              bounds: [0, 0, 50, 50]
+              color: [135, 206, 235, 1]
--- a/gfx/wr/wrench/reftests/filters/reftest.list
+++ b/gfx/wr/wrench/reftests/filters/reftest.list
@@ -4,16 +4,17 @@ platform(linux,mac) == draw_calls(6) col
 == invisible.yaml invisible-ref.yaml
 color_targets(1) alpha_targets(0) == opacity.yaml opacity-ref.yaml
 color_targets(1) alpha_targets(0) == opacity-combined.yaml opacity-combined-ref.yaml
 == opacity-overlap.yaml opacity-overlap-ref.yaml
 == filter-brightness.yaml filter-brightness-ref.yaml
 == filter-brightness-2.yaml filter-brightness-2-ref.yaml
 == filter-brightness-3.yaml filter-brightness-3-ref.yaml
 == filter-brightness-4.yaml filter-brightness-4-ref.yaml
+== filter-component-transfer.yaml filter-component-transfer-ref.yaml
 == filter-color-matrix.yaml filter-color-matrix-ref.yaml
 == filter-contrast-gray-alpha-1.yaml filter-contrast-gray-alpha-1-ref.yaml
 == filter-invert.yaml filter-invert-ref.yaml
 == filter-invert-2.yaml filter-invert-2-ref.yaml
 platform(linux,mac) fuzzy(1,133) == filter-large-blur-radius.yaml filter-large-blur-radius.png
 == draw_calls(4) color_targets(4) alpha_targets(0) filter-small-blur-radius.yaml filter-small-blur-radius.png
 == filter-saturate-red-1.yaml filter-saturate-red-1-ref.yaml
 == filter-saturate-red-2.yaml filter-saturate-red-2-ref.yaml