summaryrefslogtreecommitdiff
path: root/test/filter-nearest-transformed.c
Commit message (Collapse)AuthorAgeFilesLines
* test: Use ARRAY_LENGTH() macroAndrea Canciani2011-03-171-1/+1
| | | | | Some tests hand-code ARRAY_LENGTH(). It is now provided by cairo-test.h, so it can be reused.
* [test] Build test suite into single binary.Chris Wilson2008-10-311-13/+6
| | | | | | | | | Avoid calling libtool to link every single test case, by building just one binary from all the sources. This binary is then given the task of choosing tests to run (based on user selection and individual test requirement), forking each test into its own process and accumulating the results.
* [pattern] Only perform non-integer optimization for identity matrices.Chris Wilson2008-10-141-0/+24
| | | | | | | | A complication I realised after pushing 3eb4bc3 was handling larger sampled areas. Extending the test case revealed that the optimization was broken for anything but the identity transform (after removing the translation). Correctness first, leaving the "pixel-exact" solution for interested reader...
* [pattern] Optimize away fractional translation for NEAREST patterns.Chris Wilson2008-10-131-0/+103
As identified in bug 15479, Unpredictable performance of cairo-xlib with non-integer translations of a source surface pattern (https://bugs.freedesktop.org/show_bug.cgi?id=15479), source surfaces with a fractional translation hit slow paths for some drivers, causing seemingly random performance variations. As a work-around Owen Taylor proposed that cairo could convert non-integer translations on NEAREST sources patterns to their integer equivalents. The messy detail involved here is replicating the rounding mode used by pixman for the sample offset, but otherwise the conversion is fairly trivial.