Commit graph

2 commits

Author SHA1 Message Date
Uli Schlachter
8d74c4d019 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>
2022-12-30 16:36:22 +01:00
Chris Wilson
768d39f034 test: Move all the reference images to their own directory
With over two thousand references images now, it is starting to make the
test directory look cluttered!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 14:05:10 +01:00
Renamed from test/coverage-column-triangles.ref.png (Browse further)