diff options
Diffstat (limited to 'third_party/webrender/wrench/reftests/gradient')
35 files changed, 10 insertions, 560 deletions
diff --git a/third_party/webrender/wrench/reftests/gradient/conic-center.png b/third_party/webrender/wrench/reftests/gradient/conic-center.png Binary files differindex 9843a2efb5e..aeb0c293981 100644 --- a/third_party/webrender/wrench/reftests/gradient/conic-center.png +++ b/third_party/webrender/wrench/reftests/gradient/conic-center.png diff --git a/third_party/webrender/wrench/reftests/gradient/conic-color-wheel.png b/third_party/webrender/wrench/reftests/gradient/conic-color-wheel.png Binary files differindex 3fff3c32d41..368007c74f6 100644 --- a/third_party/webrender/wrench/reftests/gradient/conic-color-wheel.png +++ b/third_party/webrender/wrench/reftests/gradient/conic-color-wheel.png diff --git a/third_party/webrender/wrench/reftests/gradient/conic-large-ref.yaml b/third_party/webrender/wrench/reftests/gradient/conic-large-ref.yaml deleted file mode 100644 index 9441175cf1b..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/conic-large-ref.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -root: - items: - - type: rect - bounds: 50 50 2000 300 - color: blue - - - type: conic-gradient - bounds: 50 50 2000 300 - center: 150 150 - angle: 0.0 - stops: [0.0, red, - 0.125, blue, - 0.375, blue, - 0.5, yellow, - 1.0, red]
\ No newline at end of file diff --git a/third_party/webrender/wrench/reftests/gradient/conic-large.yaml b/third_party/webrender/wrench/reftests/gradient/conic-large.yaml deleted file mode 100644 index 78bf305f54c..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/conic-large.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -root: - items: - - type: conic-gradient - bounds: 50 50 2000 300 - center: 150 150 - angle: 0.0 - stops: [0.0, red, - 0.125, blue, - 0.375, blue, - 0.5, yellow, - 1.0, red]
\ No newline at end of file diff --git a/third_party/webrender/wrench/reftests/gradient/conic-nan.yaml b/third_party/webrender/wrench/reftests/gradient/conic-nan.yaml deleted file mode 100644 index 6cc6234611f..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/conic-nan.yaml +++ /dev/null @@ -1,41 +0,0 @@ ---- -root: - items: - - type: conic-gradient - bounds: 50 50 200 NaN - center: 100 100 - angle: 0.0 - stops: [0.0, red, 0.25, green, 0.5, blue, 0.75, black] - - type: conic-gradient - bounds: 50 50 200 200 - center: NaN 100 - angle: 0.0 - stops: [0.0, red, 0.25, green, 0.5, blue, 0.75, black] - - type: conic-gradient - bounds: 50 50 200 200 - center: 100 100 - angle: NaN - stops: [0.0, red, 0.25, green, 0.5, blue, 0.75, black] - - type: conic-gradient - bounds: 50 50 200 200 - center: 100 100 - angle: 0.0 - stops: [0.0, red, NaN, green, 0.5, blue, 0.75, black] - - type: conic-gradient - bounds: 50 50 200 200 - tile-size: NaN 200 - center: 100 100 - angle: 0.0 - stops: [0.0, red, 0.25, green, 0.5, blue, 0.75, black] - - type: conic-gradient - bounds: 50 50 200 200 - clip-rect: NaN 0 100 100 - center: 100 100 - angle: 0.0 - stops: [0.0, red, 0.25, green, 0.5, blue, 0.75, black] - - type: conic-gradient - bounds: NaN NaN NaN NaN - clip-rect: NaN NaN NaN NaN - center: NaN NaN - angle: NaN - stops: [NaN, red, NaN, green, NaN, blue, NaN, black] diff --git a/third_party/webrender/wrench/reftests/gradient/linear-aligned-border-radius.png b/third_party/webrender/wrench/reftests/gradient/linear-aligned-border-radius.png Binary files differindex 450e0ac56ac..2cdeeb679a8 100644 --- a/third_party/webrender/wrench/reftests/gradient/linear-aligned-border-radius.png +++ b/third_party/webrender/wrench/reftests/gradient/linear-aligned-border-radius.png diff --git a/third_party/webrender/wrench/reftests/gradient/linear-bug-1703141.yaml b/third_party/webrender/wrench/reftests/gradient/linear-bug-1703141.yaml deleted file mode 100644 index 9db333277e6..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/linear-bug-1703141.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -root: - items: - - type: gradient - bounds: -8396 465 9136 3 - tile-size: 10498.667 3 - start: 9448.5 1.5 - end: 10498.333 1.5 - repeat: true - stops: [0.0, [0,0,0,0], 0.5, [0,0,0,0], - 0.5, red, 0.75, red, - 0.75, [0,0,0,0], 1.0, [0,0,0,0]] diff --git a/third_party/webrender/wrench/reftests/gradient/linear-far-endpoints.yaml b/third_party/webrender/wrench/reftests/gradient/linear-far-endpoints.yaml deleted file mode 100644 index 45bb52debcf..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/linear-far-endpoints.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Axis-aligned linear gradient with very far endpoints. It goes through the gradient -# decomposition path which should not choke on overflow or casting failure. ---- -root: - items: - - type: gradient - bounds: 50 50 500 500 - start: -19958788096 0 - end: 19958788096 0 - stops: [0.0, red, 1.0, blue] diff --git a/third_party/webrender/wrench/reftests/gradient/linear-hard-stop-ref.png b/third_party/webrender/wrench/reftests/gradient/linear-hard-stop-ref.png Binary files differindex 4feb5e49937..a863648a3fd 100644 --- a/third_party/webrender/wrench/reftests/gradient/linear-hard-stop-ref.png +++ b/third_party/webrender/wrench/reftests/gradient/linear-hard-stop-ref.png diff --git a/third_party/webrender/wrench/reftests/gradient/linear-large-ref.yaml b/third_party/webrender/wrench/reftests/gradient/linear-large-ref.yaml deleted file mode 100644 index 472f04fd17b..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/linear-large-ref.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -root: - items: - - type: rect - bounds: 50 50 2000 300 - color: blue - - - type: gradient - bounds: 50 50 400 300 - start: 0 0 - end: 100 20 - stops: [0.0, red, 1.0, blue] diff --git a/third_party/webrender/wrench/reftests/gradient/linear-large.yaml b/third_party/webrender/wrench/reftests/gradient/linear-large.yaml deleted file mode 100644 index cf9c50edd19..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/linear-large.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -root: - items: - - type: gradient - bounds: 50 50 2000 300 - start: 0 0 - end: 100 20 - stops: [0.0, red, 1.0, blue] diff --git a/third_party/webrender/wrench/reftests/gradient/linear-nan.yaml b/third_party/webrender/wrench/reftests/gradient/linear-nan.yaml deleted file mode 100644 index 687a06d372b..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/linear-nan.yaml +++ /dev/null @@ -1,213 +0,0 @@ ---- -root: - items: - # Small-ish gradients - - type: gradient - bounds: 50 50 NaN 200 - start: 0 100 - end: 200 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.5, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 200 200 - start: 0 100 - end: NaN 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.5, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 200 200 - start: 0 NaN - end: 200 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.5, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 200 200 - start: 0 100 - end: 200 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - NaN, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 200 200 - start: 0 100 - end: 200 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.0, blue, 0.75, blue, - 0.75, black, NaN, black] - - type: gradient - bounds: 50 50 200 200 - clip-rect: 50 50 150 NaN - start: 0 100 - end: 200 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.0, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 200 200 - tile-size: NaN 200 - start: 0 100 - end: 200 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.0, blue, 0.75, blue, - 0.75, black, 1.0, black] - - # Large-ish gradients - - type: gradient - bounds: 50 50 NaN 500 - start: 0 100 - end: 500 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.5, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 500 500 - start: 0 100 - end: NaN 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.5, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 500 500 - start: 0 NaN - end: 500 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.5, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 500 500 - start: 0 100 - end: 500 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - NaN, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 500 500 - start: 0 100 - end: 500 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.0, blue, 0.75, blue, - 0.75, black, NaN, black] - - type: gradient - bounds: 50 50 500 500 - clip-rect: 50 50 150 NaN - start: 0 100 - end: 500 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.0, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 500 500 - tile-size: NaN 500 - start: 0 100 - end: 500 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.0, blue, 0.75, blue, - 0.75, black, 1.0, black] - - # Very large gradients - - type: gradient - bounds: 50 50 10000 10000 - start: 0 100 - end: NaN 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.5, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 10000 10000 - start: 0 NaN - end: 10000 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.5, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 10000 10000 - start: 0 100 - end: 10000 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - NaN, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 10000 10000 - start: 0 100 - end: 10000 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.0, blue, 0.75, blue, - 0.75, black, NaN, black] - - type: gradient - bounds: 50 50 10000 10000 - clip-rect: 50 50 150 NaN - start: 0 100 - end: 10000 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.0, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 10000 10000 - tile-size: NaN 10000 - start: 0 100 - end: 10000 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.0, blue, 0.75, blue, - 0.75, black, 1.0, black] - - # Not axis-aligned - - type: gradient - bounds: 50 50 200 200 - tile-size: NaN 200 - start: 0 0 - end: 200 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.0, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: NaN 50 200 200 - tile-size: 100 100 - start: 0 0 - end: 200 100 - stops: [0.0, red, 0.25, red, - 0.25, green, 0.5, green, - 0.0, blue, 0.75, blue, - 0.75, black, 1.0, black] - - type: gradient - bounds: 50 50 200 200 - start: 0.0 0 - end: 200 100 - stops: [NaN, red, 0.25, red, - 0.25, green, 0.5, green, - 0.0, blue, NaN, blue, - 0.75, black, 1.0, black] - - # Post-apocalyptic gradient - - type: gradient - bounds: NaN NaN NaN NaN - tile-size: NaN NaN - start: NaN NaN - end: NaN NaN - stops: [NaN, red, NaN, red, - NaN, green, NaN, green, - NaN, blue, NaN, blue, - NaN, black, NaN, black] diff --git a/third_party/webrender/wrench/reftests/gradient/linear-ref.png b/third_party/webrender/wrench/reftests/gradient/linear-ref.png Binary files differindex b157ee4befb..999c831000d 100644 --- a/third_party/webrender/wrench/reftests/gradient/linear-ref.png +++ b/third_party/webrender/wrench/reftests/gradient/linear-ref.png diff --git a/third_party/webrender/wrench/reftests/gradient/linear-repeat-clip-ref.yaml b/third_party/webrender/wrench/reftests/gradient/linear-repeat-clip-ref.yaml deleted file mode 100644 index d8fd0b3b326..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/linear-repeat-clip-ref.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -root: - items: - - type: gradient - bounds: 0 0 500 500 - start: 0 -20 - end: 0 520 - stops: [0.0, green, 0.5, blue, 1.0, red] diff --git a/third_party/webrender/wrench/reftests/gradient/linear-repeat-clip.yaml b/third_party/webrender/wrench/reftests/gradient/linear-repeat-clip.yaml deleted file mode 100644 index 9c84edd7140..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/linear-repeat-clip.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# This test has a gradient primitive that is much larger than its local clip -# and some tiling that can be optimized away. The combination of clipping -# and stretching optimizations used to cause produce the wrong clip. ---- -root: - items: - - type: gradient - bounds: -500 0 2000 500 - tile-size: 100 500 - clip-rect: 0 0 500 500 - start: 0 -20 - end: 0 520 - stops: [0.0, green, 0.5, blue, 1.0, red] diff --git a/third_party/webrender/wrench/reftests/gradient/linear-reverse-2-ref.yaml b/third_party/webrender/wrench/reftests/gradient/linear-reverse-2-ref.yaml deleted file mode 100644 index b85d3035030..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/linear-reverse-2-ref.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -root: - items: - - type: gradient - bounds: 50 50 200 200 - start: 50 100 - end: 150 100 - stops: [0.0, green, 0.5, blue, - 0.5, blue, 1.0, red] diff --git a/third_party/webrender/wrench/reftests/gradient/linear-reverse-2.yaml b/third_party/webrender/wrench/reftests/gradient/linear-reverse-2.yaml deleted file mode 100644 index c74c6b88f91..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/linear-reverse-2.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -root: - items: - - type: gradient - bounds: 50 50 200 200 - start: 150 100 - end: 50 100 - stops: [0.0, red, 0.5, blue, - 0.5, blue, 1.0, green] diff --git a/third_party/webrender/wrench/reftests/gradient/linear-reverse-3-ref.yaml b/third_party/webrender/wrench/reftests/gradient/linear-reverse-3-ref.yaml deleted file mode 100644 index 088977f50fa..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/linear-reverse-3-ref.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -root: - items: - - type: gradient - bounds: 50 50 100 100 - start: 0 0 - end: 110 0 - stops: [0.0, white, 1.0, black] - - type: gradient - bounds: 150 50 100 100 - start: 0 0 - end: 110 0 - stops: [0.0, black, 1.0, white] diff --git a/third_party/webrender/wrench/reftests/gradient/linear-reverse-3.yaml b/third_party/webrender/wrench/reftests/gradient/linear-reverse-3.yaml deleted file mode 100644 index 87b675c8ad4..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/linear-reverse-3.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -root: - items: - - type: gradient - bounds: 50 50 100 100 - start: 0 0 - end: 110 0 - stops: [0.0, white, 1.0, black] - - type: gradient - bounds: 150 50 100 100 - start: 110 0 - end: 0 0 - stops: [0.0, white, 1.0, black] diff --git a/third_party/webrender/wrench/reftests/gradient/linear-stops-ref.png b/third_party/webrender/wrench/reftests/gradient/linear-stops-ref.png Binary files differindex 844b2440023..ed80ec9988b 100644 --- a/third_party/webrender/wrench/reftests/gradient/linear-stops-ref.png +++ b/third_party/webrender/wrench/reftests/gradient/linear-stops-ref.png diff --git a/third_party/webrender/wrench/reftests/gradient/premultiplied-aligned.png b/third_party/webrender/wrench/reftests/gradient/premultiplied-aligned.png Binary files differindex 35fad64b1a3..6fc18cd8c0e 100644 --- a/third_party/webrender/wrench/reftests/gradient/premultiplied-aligned.png +++ b/third_party/webrender/wrench/reftests/gradient/premultiplied-aligned.png diff --git a/third_party/webrender/wrench/reftests/gradient/premultiplied-angle.png b/third_party/webrender/wrench/reftests/gradient/premultiplied-angle.png Binary files differindex a37120ad7e7..e533843d7d5 100644 --- a/third_party/webrender/wrench/reftests/gradient/premultiplied-angle.png +++ b/third_party/webrender/wrench/reftests/gradient/premultiplied-angle.png diff --git a/third_party/webrender/wrench/reftests/gradient/radial-circle-ref.png b/third_party/webrender/wrench/reftests/gradient/radial-circle-ref.png Binary files differindex 3f9a748a7ed..7b339707a72 100644 --- a/third_party/webrender/wrench/reftests/gradient/radial-circle-ref.png +++ b/third_party/webrender/wrench/reftests/gradient/radial-circle-ref.png diff --git a/third_party/webrender/wrench/reftests/gradient/radial-ellipse-ref.png b/third_party/webrender/wrench/reftests/gradient/radial-ellipse-ref.png Binary files differindex b4786cd3877..fd60ec35b7e 100644 --- a/third_party/webrender/wrench/reftests/gradient/radial-ellipse-ref.png +++ b/third_party/webrender/wrench/reftests/gradient/radial-ellipse-ref.png diff --git a/third_party/webrender/wrench/reftests/gradient/radial-large-ref.png b/third_party/webrender/wrench/reftests/gradient/radial-large-ref.png Binary files differdeleted file mode 100644 index 444b876094e..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/radial-large-ref.png +++ /dev/null diff --git a/third_party/webrender/wrench/reftests/gradient/radial-large.yaml b/third_party/webrender/wrench/reftests/gradient/radial-large.yaml deleted file mode 100644 index c03adec6c1d..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/radial-large.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -root: - items: - - type: radial-gradient - bounds: 50 50 2000 300 - center: 1000 150 - radius: 900 200 - stops: [0, red, 1, blue] diff --git a/third_party/webrender/wrench/reftests/gradient/radial-nan.yaml b/third_party/webrender/wrench/reftests/gradient/radial-nan.yaml deleted file mode 100644 index f8127a8c7a5..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/radial-nan.yaml +++ /dev/null @@ -1,35 +0,0 @@ ---- -root: - items: - - type: radial-gradient - bounds: 50 50 NaN 300 - center: 150 150 - radius: 200 200 - stops: [0, red, 1, blue] - - type: radial-gradient - bounds: 50 50 300 300 - center: 150 NaN - radius: 200 200 - stops: [0, red, 1, blue] - - type: radial-gradient - bounds: 50 50 300 300 - center: 150 150 - radius: NaN 200 - stops: [0, red, 1, blue] - - type: radial-gradient - bounds: 50 50 300 300 - center: 150 150 - radius: 200 200 - stops: [0, red, NaN, blue] - - type: radial-gradient - bounds: 50 50 300 300 - tile-size: 50 NaN - center: 150 150 - radius: 200 200 - stops: [0, red, 1, blue] - - type: radial-gradient - bounds: 50 50 300 300 - clip-rect: 50 10 NaN 300 - center: 150 150 - radius: 200 200 - stops: [0, red, 1, blue] diff --git a/third_party/webrender/wrench/reftests/gradient/radial-optimized-2-ref.yaml b/third_party/webrender/wrench/reftests/gradient/radial-optimized-2-ref.yaml deleted file mode 100644 index 4b900d93fad..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/radial-optimized-2-ref.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -root: - items: - - type: radial-gradient - bounds: 50 50 500 500 - center: 150 150 - radius: 80 160 - stops: [0, red, 1, [0,0,0,0]] diff --git a/third_party/webrender/wrench/reftests/gradient/radial-optimized-2.yaml b/third_party/webrender/wrench/reftests/gradient/radial-optimized-2.yaml deleted file mode 100644 index 3fac9042e21..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/radial-optimized-2.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -root: - items: - - type: radial-gradient - bounds: 50 50 500 500 - center: 150 150 - radius: 20 40 - stops: [0, red, 4, [0,0,0,0]] diff --git a/third_party/webrender/wrench/reftests/gradient/radial-optimized-ref.yaml b/third_party/webrender/wrench/reftests/gradient/radial-optimized-ref.yaml deleted file mode 100644 index 380384ffe66..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/radial-optimized-ref.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# Hand-roll decomposition that webrender would do for radial-optimized.yaml ---- -root: - items: - - type: radial-gradient - bounds: 160 160 20 30 - center: 10 15 - radius: 10 15 - stops: [0, [255.0,0,0,0.7], 1, [0,0,255.0,0.7]] - - type: rect - bounds: 10 20 150 140 - color: [0,0,255.0,0.7] - - type: rect - bounds: 160 20 20 140 - color: [0,0,255.0,0.7] - - type: rect - bounds: 180 20 130 140 - color: [0,0,255.0,0.7] - - type: rect - bounds: 10 160 150 30 - color: [0,0,255.0,0.7] - - type: rect - bounds: 180 160 130 30 - color: [0,0,255.0,0.7] - - type: rect - bounds: 10 190 150 160 - color: [0,0,255.0,0.7] - - type: rect - bounds: 160 190 20 160 - color: [0,0,255.0,0.7] - - type: rect - bounds: 180 190 130 160 - color: [0,0,255.0,0.7] diff --git a/third_party/webrender/wrench/reftests/gradient/radial-optimized.yaml b/third_party/webrender/wrench/reftests/gradient/radial-optimized.yaml deleted file mode 100644 index cfc668bc66b..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/radial-optimized.yaml +++ /dev/null @@ -1,12 +0,0 @@ -# A small radial gradient in a large primitive. -# Most of the primitive is the constant color of the last gradient stop, -# and webrender will try to optimize these parts by drawing them with -# solid color primitives. ---- -root: - items: - - type: radial-gradient - bounds: 10 20 300 330 - center: 160 155 - radius: 10 15 - stops: [0, [255.0,0,0,0.7], 1, [0,0,255.0,0.7]] diff --git a/third_party/webrender/wrench/reftests/gradient/radial-tiling-optimized-ref.yaml b/third_party/webrender/wrench/reftests/gradient/radial-tiling-optimized-ref.yaml deleted file mode 100644 index b5b4957f9be..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/radial-tiling-optimized-ref.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -root: - items: - - type: radial-gradient - bounds: 50 40 20 20 - center: 10 10 - radius: 10 10 - stops: [0, red, 1, blue, 1, [0,0,0,0]] - - type: radial-gradient - bounds: 450 40 20 20 - center: 10 10 - radius: 10 10 - stops: [0, red, 1, blue, 1, [0,0,0,0]] - - type: radial-gradient - bounds: 450 340 20 20 - center: 10 10 - radius: 10 10 - stops: [0, red, 1, blue, 1, [0,0,0,0]] - - type: radial-gradient - bounds: 50 340 20 20 - center: 10 10 - radius: 10 10 - stops: [0, red, 1, blue, 1, [0,0,0,0]] - diff --git a/third_party/webrender/wrench/reftests/gradient/radial-tiling-optimized.yaml b/third_party/webrender/wrench/reftests/gradient/radial-tiling-optimized.yaml deleted file mode 100644 index a92fd244797..00000000000 --- a/third_party/webrender/wrench/reftests/gradient/radial-tiling-optimized.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# A small repeated radial gradient in a large primitive. -# There is a lot of fully transparent space that webrender -# will optimize out. ---- -root: - items: - - type: radial-gradient - bounds: 10 10 800 600 - center: 50 40 - radius: 10 10 - stops: [0, red, 1, blue, 1, [0,0,0,0]] - tile-size: 300 200 - tile-spacing: 100 100 diff --git a/third_party/webrender/wrench/reftests/gradient/reftest.list b/third_party/webrender/wrench/reftests/gradient/reftest.list index 9f8dc0cc086..847c06ea8ee 100644 --- a/third_party/webrender/wrench/reftests/gradient/reftest.list +++ b/third_party/webrender/wrench/reftests/gradient/reftest.list @@ -1,5 +1,5 @@ platform(linux,mac) == premultiplied-aligned.yaml premultiplied-aligned.png -fuzzy(1,500) platform(linux,mac) == premultiplied-angle.yaml premultiplied-angle.png +platform(linux,mac) == premultiplied-angle.yaml premultiplied-angle.png platform(linux,mac) == premultiplied-radial.yaml premultiplied-radial.png platform(linux,mac) == premultiplied-conic.yaml premultiplied-conic.png @@ -10,8 +10,6 @@ platform(linux,mac) == premultiplied-conic-2.yaml premultiplied-conic-2.png == linear.yaml linear-ref.png == linear-reverse.yaml linear-ref.png -fuzzy(255,1200) == linear-reverse-2.yaml linear-reverse-2-ref.yaml -== linear-reverse-3.yaml linear-reverse-3-ref.yaml platform(linux,mac) fuzzy(1,35000) == linear-stops.yaml linear-stops-ref.png == linear-clamp-1a.yaml linear-clamp-1-ref.yaml @@ -24,7 +22,7 @@ fuzzy-range(<=1,*4800) == linear-hard-stop.yaml linear-hard-stop-ref.png fuzzy(1,20000) == linear.yaml linear-ref.yaml fuzzy(1,20000) == linear-reverse.yaml linear-ref.yaml -fuzzy(1,40000) == linear-aligned-clip.yaml linear-aligned-clip-ref.yaml +fuzzy(1,15200) == linear-aligned-clip.yaml linear-aligned-clip-ref.yaml platform(linux,mac) fuzzy(1,80000) == radial-circle.yaml radial-circle-ref.png platform(linux,mac) fuzzy(1,80000) == radial-ellipse.yaml radial-ellipse-ref.png @@ -52,8 +50,8 @@ platform(linux,mac) fuzzy(1,80000) == radial-ellipse.yaml radial-ellipse-ref.png # this might be able to be improved fuzzy(255,1200) == repeat-linear.yaml repeat-linear-ref.yaml fuzzy(255,1200) == repeat-linear-reverse.yaml repeat-linear-ref.yaml -fuzzy(255,2666) == repeat-radial.yaml repeat-radial-ref.yaml -fuzzy(255,2666) == repeat-radial-negative.yaml repeat-radial-ref.yaml +fuzzy(255,2664) == repeat-radial.yaml repeat-radial-ref.yaml +fuzzy(255,2664) == repeat-radial-negative.yaml repeat-radial-ref.yaml fuzzy(255,1652) == repeat-conic.yaml repeat-conic-ref.yaml fuzzy(255,1652) == repeat-conic-negative.yaml repeat-conic-ref.yaml @@ -64,19 +62,18 @@ fuzzy(1,62154) == tiling-linear-3.yaml tiling-linear-3-ref.yaml fuzzy(1,17) == tiling-radial-1.yaml tiling-radial-1-ref.yaml fuzzy(1,1) == tiling-radial-2.yaml tiling-radial-2-ref.yaml -fuzzy(1,3) fuzzy-if(platform(swgl),1,1318) == tiling-radial-3.yaml tiling-radial-3-ref.yaml +fuzzy(1,3) == tiling-radial-3.yaml tiling-radial-3-ref.yaml fuzzy(1,17) == tiling-radial-4.yaml tiling-radial-4-ref.yaml fuzzy(1,17) == tiling-conic-1.yaml tiling-conic-1-ref.yaml fuzzy(1,1) == tiling-conic-2.yaml tiling-conic-2-ref.yaml -fuzzy(1,7) == tiling-conic-3.yaml tiling-conic-3-ref.yaml +fuzzy(1,3) == tiling-conic-3.yaml tiling-conic-3-ref.yaml == radial-zero-size-1.yaml radial-zero-size-ref.yaml == radial-zero-size-2.yaml radial-zero-size-ref.yaml == radial-zero-size-3.yaml radial-zero-size-ref.yaml == linear-adjust-tile-size.yaml linear-adjust-tile-size-ref.yaml -== linear-repeat-clip.yaml linear-repeat-clip-ref.yaml platform(linux,mac) == linear-aligned-border-radius.yaml linear-aligned-border-radius.png # interpolation fuzz from sampling texture-baked gradient ramps @@ -84,22 +81,21 @@ platform(linux,mac) fuzzy-range(<=1,*1404) == repeat-border-radius.yaml repeat-b == conic.yaml conic-ref.yaml fuzzy(1,57) == conic-simple.yaml conic-simple.png -fuzzy(255,302) == conic-angle.yaml conic-angle.png +fuzzy(255,166) == conic-angle.yaml conic-angle.png == conic-center.yaml conic-center.png fuzzy(1,2) == conic-angle-wraparound.yaml conic-angle.yaml fuzzy(1,1) == conic-angle-wraparound-negative.yaml conic-angle.yaml -fuzzy(1,333) == conic-color-wheel.yaml conic-color-wheel.png +fuzzy(1,115) == conic-color-wheel.yaml conic-color-wheel.png # gradient caching tests # replaces a computed gradient by a sampled texture, so a lot of off-by-one # variation from interpolation, which is fine: fuzzy-range(<=1,*195000) == gradient_cache_5stops.yaml gradient_cache_5stops_ref.yaml -fuzzy-range(<=1,*171840) == gradient_cache_5stops_vertical.yaml gradient_cache_5stops_vertical_ref.yaml +fuzzy-range(<=1,*169000) == gradient_cache_5stops_vertical.yaml gradient_cache_5stops_vertical_ref.yaml == gradient_cache_hardstop.yaml gradient_cache_hardstop_ref.yaml -fuzzy-range(<=1,1) == gradient_cache_hardstop_clip.yaml gradient_cache_hardstop_clip_ref.yaml +== gradient_cache_hardstop_clip.yaml gradient_cache_hardstop_clip_ref.yaml == gradient_cache_clamp.yaml gradient_cache_clamp_ref.yaml == gradient_cache_repeat.yaml gradient_cache_repeat_ref.yaml -== linear-bug-1703141.yaml linear-bug-1703141.yaml # Recognize opaque tiles with gradient backgrounds == conic-backdrop-with-spacing.yaml conic-backdrop-with-spacing-ref.yaml @@ -108,19 +104,3 @@ fuzzy-range(<=1,1) == gradient_cache_hardstop_clip.yaml gradient_cache_hardstop_ == linear-backdrop.yaml linear-backdrop-ref.yaml == radial-backdrop-with-spacing.yaml radial-backdrop-with-spacing-ref.yaml == radial-backdrop.yaml radial-backdrop-ref.yaml - -# Exercise the radial gradient optimization code path -== radial-optimized.yaml radial-optimized-ref.yaml -== radial-optimized-2.yaml radial-optimized-2-ref.yaml -== radial-tiling-optimized.yaml radial-tiling-optimized-ref.yaml - -# Exercise the cached gradient scaling code path -fuzzy(2,23000) == linear-large.yaml linear-large-ref.yaml -== conic-large.yaml conic-large-ref.yaml -fuzzy(1,7000) == radial-large.yaml radial-large-ref.png - -# crash tests -== linear-far-endpoints.yaml linear-far-endpoints.yaml -== linear-nan.yaml linear-nan.yaml -== radial-nan.yaml radial-nan.yaml -== conic-nan.yaml conic-nan.yaml diff --git a/third_party/webrender/wrench/reftests/gradient/repeat-border-radius.png b/third_party/webrender/wrench/reftests/gradient/repeat-border-radius.png Binary files differindex cc0fa947ae7..7896fa7e2ae 100644 --- a/third_party/webrender/wrench/reftests/gradient/repeat-border-radius.png +++ b/third_party/webrender/wrench/reftests/gradient/repeat-border-radius.png |