Add another test patch to shade-tensor.in

Here, all non-corner control points are where a linear span
from the corners would put them, but it's folded onto itself.

This defeats a heuristic I was trying locally.

PDFium's current approach doesn't draw this path at all
(...which is incorrect.) pdf.js does pretty well (but has
some minor black pixel artifacts). Preview.app does meh,
but it at least paints something.

Bug: 418737845
Change-Id: I0db62a0a6cb88783028a79b97c1dcd1b523b419c
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/132330
Auto-Submit: Nico Weber <thakis@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nico Weber <thakis@google.com>
Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/testing/resources/pixel/shade-tensor.in b/testing/resources/pixel/shade-tensor.in
index 5cb0d27..a71ef0e 100644
--- a/testing/resources/pixel/shade-tensor.in
+++ b/testing/resources/pixel/shade-tensor.in
@@ -31,6 +31,7 @@
       /Shj 14 0 R
       /Shk 15 0 R
       /Shl 16 0 R
+      /Shm 17 0 R
     >>
   >>
 >>
@@ -106,10 +107,15 @@
 /Shk sh
 Q
 q
-1 0 0 1 100 -20 cm
+1 0 0 1 80 -20 cm
 0 0 100 100 re W n
 /Shl sh
 Q
+q
+1 0 0 1 155 10 cm
+0 0 100 100 re W n
+/Shm sh
+Q
 
 endstream
 endobj
@@ -417,6 +423,30 @@
 endstream
 endobj
 
+{{object 17 0}} <<
+  /ShadingType 7
+  /ColorSpace /DeviceRGB
+  /BitsPerCoordinate 16
+  /BitsPerComponent 8
+  /BitsPerFlag 8
+  /Decode [0 40 0 40 0 1 0 1 0 1]
+  /Filter /ASCIIHexDecode
+  {{streamlen}}
+>>
+stream
+00
+           0000 0000  0000 5000
+0000 a000  0000 f000  5000 f000
+a000 f000  f000 f000  a000 f000
+5000 f000  0000 f000  0000 a000
+0000 5000
+5000 5000  5000 a000  a000 a000  5000 a000
+
+80ff00 80ff00 80ff00 80ff00
+>
+endstream
+endobj
+
 {{xref}}
 {{trailer}}
 {{startxref}}
diff --git a/testing/resources/pixel/shade-tensor_expected.pdf.0.png b/testing/resources/pixel/shade-tensor_expected.pdf.0.png
index 5dcd241..5d1e95c 100644
--- a/testing/resources/pixel/shade-tensor_expected.pdf.0.png
+++ b/testing/resources/pixel/shade-tensor_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/shade-tensor_expected_gdi_skia.pdf.0.png b/testing/resources/pixel/shade-tensor_expected_gdi_skia.pdf.0.png
index 52e17a8..8998973 100644
--- a/testing/resources/pixel/shade-tensor_expected_gdi_skia.pdf.0.png
+++ b/testing/resources/pixel/shade-tensor_expected_gdi_skia.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/shade-tensor_expected_skia.pdf.0.png b/testing/resources/pixel/shade-tensor_expected_skia.pdf.0.png
index e41dc79..26882d6 100644
--- a/testing/resources/pixel/shade-tensor_expected_skia.pdf.0.png
+++ b/testing/resources/pixel/shade-tensor_expected_skia.pdf.0.png
Binary files differ