Carl Worth
fd13e874a7
perf: Drop separate setup function from each test case.
...
We are already doing loop measurement internally, so each function
can already do any setup it needs without it affecting the measurement.
2006-08-31 11:42:51 -07:00
Carl Worth
578b74473d
perf: More consistency improvements for names.
...
Rename bench_timer_t to cairo_perf_timer_t.
Rename PERF_LOOP macros to CAIRO_PERF_LOOP
Rename DECL_PERF_FUNC to CAIRO_PERF_DECL
2006-08-31 11:38:23 -07:00
Carl Worth
cf75da4842
perf: Rename timer-alarm files to cairo-perf-timer
2006-08-31 11:38:23 -07:00
Behdad Esfahbod
7ad6e94101
[test] Use FcFreeTypeQuery
2006-08-31 14:22:10 -04:00
Carl Worth
7f6e901a23
perf: More simplification of PERF_LOOP macros.
...
Here we drop both the start_timing and stop_timing functions,
foliding their contents into main, PERF_LOOP_INIT and
PERF_LOOP_FINI.
2006-08-31 11:19:48 -07:00
Carl Worth
b9f629d542
perf: Don't require a separate counter from the timer for perf loops.
2006-08-31 11:02:20 -07:00
Carl Worth
13bcba68ae
perf: Collapse timing.[ch] down into cairo-perf.[ch]
2006-08-31 10:41:00 -07:00
Carl Worth
a60ed68dae
perf: Remove unused util.c
2006-08-31 10:33:24 -07:00
Carl Worth
739c476767
Initial hookup of Vlad's timer/alarm code
2006-08-31 10:29:52 -07:00
Vladimir Vukicevic
3d279da621
Add useful pieces from Vladimir's cairo-bench
2006-08-31 10:28:06 -07:00
Behdad Esfahbod
851dd63719
[test] Use $(srcdir) to find valgrind supressions
2006-08-31 13:18:47 -04:00
Carl Worth
2c16aa6304
perf: Don't measure meta-surface-backed surface types.
2006-08-31 08:53:58 -07:00
Carl Worth
4915e0baa7
boilerplate: Fix missing include of config.h which was preventing many backends from being tested
2006-08-31 08:36:29 -07:00
Carl Worth
8d834c3a34
Require librsvg >= 2.14.0 to test SVG backend
2006-08-31 08:35:39 -07:00
Carl Worth
e153c55dff
perf: Add initial skeleton of performance monitoring suite
2006-08-31 07:19:05 -07:00
Carl Worth
d1834cca19
test: Ignore single-bit errors for SVG backend.
...
The interface of the various buffer/image_diff functions is improved to
provide the maximum pixel difference in addition to the number of pixels
that differ. This value can then be used to compare against a per-backend
tolerance.
Currently I've set the SVG backend's tolerance to 1 to handle some issues
we're currently seeing of single-bit differences on different systems, (but
we're not exactly sure why yet).
Also I improved the image_diff routines to properly report a status value
on failure rather than the bogus value of -1 for pixels_changed.
2006-08-31 04:01:10 -07:00
Carl Worth
d52a1f762d
Move test-specific stuff out of boilerplate/ and back into test/
...
This now gives us two separate libtool convenience libraries,
so they have to have separate names now:
libcairoboilerplate.la and libcairotest.la.
2006-08-31 01:39:06 -07:00
Carl Worth
9547521885
boilerplate: Remove custom read/write-png code in favor of using cairo surfaces
...
Also combine image_diff and image_diff_flattened into a single function
2006-08-31 01:09:39 -07:00
Carl Worth
37ce705890
Separate the sharable stuff out of cairo-test.c into cairo-boilerplate.c
2006-08-30 22:57:36 -07:00
Carl Worth
a0ca4369ff
Add boilerplate/README explaining its purpose
2006-08-30 22:33:53 -07:00
Carl Worth
5ef4c991f6
test: Add link to test log file in HTML output
2006-08-30 15:38:15 -07:00
Carl Worth
7f4e83ceeb
Split libcairotest files out from test/ and into boilerplate/
...
The idea here is to setup boilerplate to allow code sharing between
test/ and the upcoming perf/
2006-08-30 15:34:27 -07:00
Behdad Esfahbod
a5f068e10d
[test] Add 128 to any diff component such that differences are visible
2006-08-30 13:19:05 -04:00
Behdad Esfahbod
3252ad5ca6
[PNG] Mark status volatile to fix gcc warning
2006-08-28 22:44:15 -04:00
Behdad Esfahbod
b6e5f2b0fe
[xlib] Bug 7593: rewrite loop to be more readable, and fix warnings
...
Basically, it's evil to write a loop like:
while ((c -= 4) > 0) {
...
}
for one reason that doesn't work if c is unsigned. And when c is signed, if
for some reason c is about -MAXINT, then it will overflow and not work as
expected.
It's much safer (and more gcc warning friendly) to rewrite it as:
unsigned int c;
while (c >= 4) {
...
c -= 4;
}
2006-08-28 22:30:38 -04:00
Carl Worth
06a9628868
Eliminate conditions checking for unsigned or enum values less than 0.
2006-08-28 19:00:48 -07:00
Carl Worth
7d1399a4bb
Put static first to avoid compiler warning.
2006-08-28 18:58:27 -07:00
Behdad Esfahbod
1b7ced6614
Bug #7593 : Avoid unsigned loop control variable to eliminate infinite, memory-scribbling loop.
...
Behdad chased this bug down when looking into bug #7593 . This
bug is what finally motivated us to figure out how to get -Wextra
(for the "always true" comparisons of unsigned variables against
negative values).
2006-08-28 18:57:14 -07:00
Carl Worth
50003615f2
Add -Wextra (as well as -Wno-missing-field-initializers -Wno-unused-parameter)
...
We'd been wanting some of the warnings in -Wextra for a long time,
but we had failed in tryingto squelch some of the undesired warnings.
We finally figured out how to do this correctly by simply ordering
the warnings correctly.
2006-08-28 18:55:02 -07:00
Behdad Esfahbod
5492946b0c
[image] Print out cairo version in the unsupported-format message
2006-08-23 12:29:49 -04:00
Behdad Esfahbod
96c8f92883
[test] bufferdiff: take abs of the pixel diffs. Oops!
2006-08-22 22:00:58 -04:00
Behdad Esfahbod
988b5dcb7e
[ROADMAP] Remove 1.2.4 stuff out of the way
2006-08-21 23:27:59 -04:00
Behdad Esfahbod
edf6f24e1b
[TODO] Add cairo_get_scaled_font
2006-08-21 23:27:59 -04:00
Behdad Esfahbod
3d6aec7334
[ROADMAP] Add glyph cache inspection to 1.4 roadmap
2006-08-21 23:27:59 -04:00
Adrian Johnson
782e3eb65b
Get correct unhinted outlines on win32.
...
The documentation for GetGlyphOutline() states that outline returned is grid
fitted and if an application requires an unmodified outline it can request an
outline for a font whose size is equal to the font's em unit.
This seems to suggest that the solution to this bug would be to obtain the
unmodified outline data and scale it to the required size.
https://bugs.freedesktop.org/show_bug.cgi?id=7603
2006-08-21 12:52:56 -04:00
Yevgen Muntyan
6de226be0e
Define WINVER if it's not defined. (bug 6456)
2006-08-21 03:52:40 -04:00
Behdad Esfahbod
6ed1613b51
[Makefile.am] Remove unnecessary parantheses that were causing trouble with old bash
...
Reported by Tor Lillqvist
2006-08-20 13:44:56 -04:00
Carl Worth
047251db43
Increment version to 1.2.5 after making the 1.2.4 release
2006-08-18 18:30:31 -07:00
Carl Worth
54755b2d98
Remove stray ] that was breaking RELEASE_OR_PUBLISH and many make targets (release-publish, etc.)
2006-08-18 18:19:10 -07:00
Carl Worth
fadde879fb
Update version to 1.2.4 and libtool version to 11:2:9.
2006-08-18 17:36:42 -07:00
Carl Worth
43a25b8187
NEWS: Add notes for the 1.2.4 release.
2006-08-18 17:35:33 -07:00
Carl Worth
790a359f89
EXTRA_DIST: Add missing source-clip-scale-svg-ref.png
2006-08-18 16:46:57 -07:00
Carl Worth
4f5bb53032
Ignore ChangeLog* in addition to ChangeLog
2006-08-18 16:35:58 -07:00
Carl Worth
2860af3ce2
bitmap-font: Add missing pdf-specific reference image
2006-08-18 16:35:27 -07:00
Carl Worth
b8b507c092
Use &image->base as appropriate to avoid warnings.
2006-08-18 16:12:43 -07:00
Carl Worth
5f94275a4b
Update .gitignore due to recent rename.
2006-08-18 16:09:53 -07:00
Behdad Esfahbod
d04b8148c2
[TODO] Add some items from memory
2006-08-18 18:55:52 -04:00
Carl Worth
33b62f47a4
Move unscheduled features and bugs from ROADMAP to TODO
2006-08-18 15:08:58 -07:00
Carl Worth
d1be19e160
Add notes on reporting bugs to BUGS file and move bugs listed there to ROADMAP instead.
2006-08-18 15:02:24 -07:00
Carl Worth
76fca1898c
EXTRA_DIST: Add several files to the tar file releases, (BUGS, CODING_STYLE, ROADMAP, etc.
2006-08-18 14:30:01 -07:00