summaryrefslogtreecommitdiff
path: root/test/reference
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2022-12-30 16:36:22 +0100
committerUli Schlachter <psychon@znc.in>2022-12-30 16:36:22 +0100
commit8d74c4d0198326f2d216e3c8c0b18e121cdb1436 (patch)
tree3554b4bbdc389dc4a8ac7671fe0172bb2b8256ba /test/reference
parent35f2610f4d6410e2737b27f444a00ab540df0907 (diff)
downloadcairo-8d74c4d0198326f2d216e3c8c0b18e121cdb1436.tar.gz
Speed up coverage-column-triangles test
This commit changes the height of the coverage-column-triangles test by using a smaller height for the test. Previously the image was 40 pixels in height and the test took 517 seconds for me. Now, the image has a height of 4 pixels and the test takes 55 seconds. This is possible since column_triangles() does the same thing for each y coordinate. Thus, previously this test just did the same thing 40 times. Times are measured with the backends I happened to have enabled locally: script, xcb, xlib, image, recording. Thanks a lot to Christian Rohlfs for coming up with this idea in https://gitlab.freedesktop.org/cairo/cairo/-/issues/498#note_1700197 Possibly-fixes: https://gitlab.freedesktop.org/cairo/cairo/-/issues/498 Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'test/reference')
-rw-r--r--test/reference/coverage-column-triangles.ref.pngbin208 -> 886 bytes
-rw-r--r--test/reference/coverage-column-triangles.xfail.pngbin7632 -> 560 bytes
-rw-r--r--test/reference/coverage-column-triangles.xlib.xfail.pngbin12745 -> 1364 bytes
3 files changed, 0 insertions, 0 deletions
diff --git a/test/reference/coverage-column-triangles.ref.png b/test/reference/coverage-column-triangles.ref.png
index aa61031b7..24ccc9f2a 100644
--- a/test/reference/coverage-column-triangles.ref.png
+++ b/test/reference/coverage-column-triangles.ref.png
Binary files differ
diff --git a/test/reference/coverage-column-triangles.xfail.png b/test/reference/coverage-column-triangles.xfail.png
index 566b41544..9af5253c5 100644
--- a/test/reference/coverage-column-triangles.xfail.png
+++ b/test/reference/coverage-column-triangles.xfail.png
Binary files differ
diff --git a/test/reference/coverage-column-triangles.xlib.xfail.png b/test/reference/coverage-column-triangles.xlib.xfail.png
index f433b7a84..18e4af2da 100644
--- a/test/reference/coverage-column-triangles.xlib.xfail.png
+++ b/test/reference/coverage-column-triangles.xlib.xfail.png
Binary files differ